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 / PATCH Dataverse Choice...
Power Apps
Answered

PATCH Dataverse Choice Column Syntax

(0) ShareShare
ReportReport
Posted on by 910

Hi All - anyone know the syntax for a Dataverse choice column in a patch  ? 

 

All I want to do here is change the status column  VPStatus. It is a choice column with 2 options. 

I've Tried every obvious scenario - can't seem to get it right. 

 

Error: This type of argument does not match the expected type OptionSetValue type error ....

thx 

 

This is my problem {VPStatus: 472340001}

---------------------------
Patch(
ValuePacks,
LookUp(
ValuePacks,

'VP Name'= DataCardValue1.Value),

{VPStatus: 472340001}
)

 

 

ctedesco3307_0-1677868200366.png

 

Categories:
I have the same question (0)
  • Verified answer
    ctedesco3307 Profile Picture
    910 on at

    I got it! 

    Patch(
    ValuePacks,
    LookUp(
    ValuePacks,

    'VP Name'= DataCardValue1.Value),

    {VPStatus: VPStatus.Closed}
    )

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard