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 / Combining Multiple Pat...
Power Apps
Answered

Combining Multiple Patch Statements in Button

(0) ShareShare
ReportReport
Posted on by 3

Hello,

 

I am struggling to perform multiple patch statements in a single button. Currently, I am attempting the undesirable method of just throwing 10+ patch statements in the onSelect() of a button. However, it will only patch 3 values and reset the other updated cells to their previous value before changing them. This worries me because it could indicate a limit in either connection or privileges. It also doesn't matter which values I pick to for my 3.

 

I'm unsure how to update them with forAll() statements because this button should be updating multiple columns in a single row, instead of multiple rows in a single column. I can't seem to conceptualize using a collection with this situation.

 

My current patch statements look similar to this:

 

 

Patch(RandomTable,ThisItem,{Feb:Value((TextInput2.Text))});
Patch(RandomTable,ThisItem,{Mar:Value((TextInput3.Text))});

 

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @StrugglinWitPA 

    You don't need multiple patch commands, you can patch all the values by containing them inside curly braces separated by commas. 

     

    Patch(
     RandomTable,ThisItem,{Feb:Value(TextInput8_1.Text), Mar:Value(TextInput8_2.Text)}
    )

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What if i want to patch for a 2 different list with same button??

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard