web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patching to a choice c...
Power Apps
Unanswered

Patching to a choice column

(0) ShareShare
ReportReport
Posted on by 58

I am trying to patch to an existing record.  The column I want to patch to is a choice column. but I cannot seem to get the proper syntax for the function.  I have looked at similar posts, and come up with the following.:

 

Patch('Process Diary', LookUp('Process Diary', ID=VarX), {StatusByQuality: {Value: "Approved"}})

 

but get the following error message:

Cathleen307_0-1639666029100.png

Thank you in advance for your support.

 

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

    @Cathleen307 

    You will do much better in these cases to use the UpdateIf function rather than Patch, only because you are doing 2 datasource actions...LookUp and Patch.  UpdateIf will do it in one shot.

    UpdateIf('Process Diary', ID=VarX, 
     {StatusByQuality: {Value: "Approved"}}
    )

    Beyond that, your syntax is correct.  Tell me more about the definition of that column in your list.  Is it really a Choice column and does it allow for multiple choices?

     

  • MF-11091236-0 Profile Picture
    41 on at
    The dataverse column definition.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard