Announcements
Good day!
Here is the overview of my SharePoint List:
I'd like to use a button in a gallery item in power apps wherein I'll just change the value of the specific item. For example, I like to change pending to "Canceled".
Regards,
Lyndon
Hi @LTomas ,
On the OnSelect of the button
Patch( SPListName, {ID: ThisItem.ID}, {Status: "Canceled") )
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
I think the Patch() documentation covers this functionality: https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-patch#modify-or-create-a-record-in-a-data-source-2
In your case, though, you will patch "ThisItem" (assuming your gallery data source is directly referencing your SP list). It might look similar to this depending on how the system column names appear:
Patch(DataSource, ThisItem, {Status: "Canceled"})
Try it out, and read through the Patch() doco thoroughly if you have any issues.
Thank you very much!
Is it possible wherein we can patch 2 values from different SP lists?
Kind of like this?
@LTomas ,
Yes - you just need a semi-colon ; between the two commands,
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 377 Most Valuable Professional
11manish 165 Super User 2026 Season 2
MS.Ragavendar 110 Super User 2026 Season 2