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 / How to update a single...
Power Apps
Answered

How to update a single value of an Item using a button?

(0) ShareShare
ReportReport
Posted on by 40

Good day!

Here is the overview of my SharePoint List:

IDTitleStatus (Single Line of Text)
1NamePending

 

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".

LTomas_0-1658802412564.png

 

 

Regards,

Lyndon

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    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

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    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. 

  • LTomas Profile Picture
    40 on at

    Thank you very much!

     

  • LTomas Profile Picture
    40 on at

    Is it possible wherein we can patch 2 values from different SP lists?

     

    Kind of like this?

    LTomas_0-1658810836024.png

     



  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    @LTomas ,

    Yes - you just need a semi-colon ; between the two commands,

     

    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

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard