web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Function - Updat...
Power Apps
Answered

Patch Function - Updating 2 columns in an SP List - Button Onselect.

(0) ShareShare
ReportReport
Posted on by 16

Hello,

 

I am updating an SPList from the browse gallery.

Users tick a checkbox control and select a save button to update the SP list.

This works using

 

ForAll(Filter(BrowseGallery1.AllItems, Checkbox1.Value, ), Patch(SearchFilterTest,{ID:ID},{'SharePointColumn':Checkbox1.Value}))

 

However now I need a second checkbox and have that update the SharePoint list as well when the save button is clicked.

All other columns in the SPList are staying the same.

Can anyone help with how to add a second update 

{'SharePointColumn2':Checkbox2Value} to the patch function

 

Many thanks

 

 

Categories:
  • Verified answer
    Meneghino Profile Picture
    6,949 on at
    ForAll(Filter(BrowseGallery1.AllItems, Checkbox1.Value, ), Patch(SearchFilterTest,{ID:ID},{'SharePointColumn':Checkbox1.Value}, {'SharePointColumn2':Checkbox2.Value}))

    OR

     

    ForAll(Filter(BrowseGallery1.AllItems, Checkbox1.Value, ), Patch(SearchFilterTest,{ID:ID},{'SharePointColumn':Checkbox1.Value , 'SharePointColumn2':Checkbox2.Value}))

     

  • LauraLee Profile Picture
    16 on at

    Thank you so much, this first one worked !! Man Happy

     

     

  • LauraLee Profile Picture
    16 on at

    An update on this for anyone starting out like me..

     

    ForAll(Filter(BrowseGallery.AllItems, First_CheckBox.Value),Patch(test,{ID:ID},{ SPColumn1:First_CheckBox.Value, SPColumn2:Second_CheckBox.Value}))

     

    Only updates when the First check box control or both are ticked.

     

    To update the SP List I need to change the filter to BrowseGallery.AllItems, First_CheckBox.Value Or Second_CheckBox.Value

     

    ForAll(Filter(BrowseGallery.AllItems, First_CheckBox.Value Or Second_CheckBox.Value),Patch(test,{ID:ID},{ SPColumn1:First_CheckBox.Value, SPColumn2:Second_CheckBox.Value}))

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard