Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

PATCH Dataverse Choice Column Syntax

(0) ShareShare
ReportReport
Posted on by 623

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:
  • Verified answer
    ctedesco3307 Profile Picture
    623 on at
    Re: PATCH Dataverse Choice Column Syntax

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard