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 / Update Choice field on...
Power Apps
Answered

Update Choice field on Sharepoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community.!!

 

I have one SharePoint where the field Status is a Choice Option (with the options Rejected, Pending, Approved).

On the other hand, I am developing an app where the user can use the checkbox to upate the records.

I was working in the formula but was impossible to me. 

 

Please. Could you help me?

thank you.!!

 

ivpd_0-1598381548382.png

 

ivpd_1-1598381616678.png

 

 

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

    @Anonymous 

    You will need to change your formula to the following to Patch a Choice column in SharePoint:

     

    Patch('DocuSign User Access Review',
     LookUp('DocuSign User Access Review', ID=ThisItem.ID),
     {Status:
     {Value: "Pending",
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
     }
     }
     )
    )

    Notice also that you should consider using a lookup rather than a First(Filter statement.  The performance is better and both give you the same result.

    Also consider that if your Gallery items are based on the datasource you have, you can shorten to this:

    Patch('DocuSign User Access Review',
     ThisItem,
     {Status:
     {Value: "Pending",
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
     }
     }
     )
    )

     

    I hope this is helpful for you.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard