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 choice...
Power Apps
Unanswered

How to update a choice field in a list of Sharepoint using a button from PowerApp

(0) ShareShare
ReportReport
Posted on by 3

Hello community!

At this moment, I am developing an application where I store information in a SharePoint list. I need to create a button which when clicked will update the status of that "Request" to "Cancelled" only if this status is "Pending" as long as it is different from "In Progress", "Done", "Rejected" and "Cancelled".
Is it possible to do this? I want to exclude the delete process request, only update the status to cancelled.

 

Button to cancel request:

gonzalomd_1-1654112504267.png

 

 

List:

gonzalomd_0-1654112329152.png

 

Thanks to all!

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    you collect all the choices you have selected into a collection, in a value column, then will update it liek this

    Patch(ParkingMasterGarages,GarageFocus.Selected,{Area:choiceroundup})

    in example above, Area is my choice column in sharepoint, and choiceroundup is my collection in powerapps that has my choice selections

  • gonzalomd Profile Picture
    3 on at

    Sorry but I cant update the conditions, the button have the property OnSelect and Patch(Testing,DataCardValue13.Selected,{'Status request':'Cancelled'})
    Testing is the List
    DataCardValue13 is the field of Status
    'Status request' is the name of column of choice in Lists and Cancelled is the name into the List for Cancelled tickets

    gonzalomd_0-1654126880675.png

    Any idea? thnks

  • TheRobRush Profile Picture
    11,128 Moderator on at

    in my example 

    {Area:choiceroundup}

    is a collection, so sends it to sharepoint in proper format for a choice column. if manually typing out I think its gonna be somehting like

    {Area:{Value:'Canceled'}}

    I never do it manually and don't have powerapps pulled up to test the syntax at the moment. You could also just put 

    ClearCollect(dataset, {Value:'Cancelled'});
    Patch(Testing,DataCardValue13.Selected,{'Status request':dataset})

    a clearcollect before it to make sure your info is in right format for passing to a choice column (choice column is a little table/collection of info with the property of 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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard