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 / 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,299 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

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