Skip to main content

Notifications

Community site session details

Community site session details

Session Id : HxYQJFgcpqKDGtPm3FVusc
Power Apps - Building Power Apps
Answered

Dataverse Choice column

Like (1) ShareShare
ReportReport
Posted on 30 Aug 2024 11:50:55 by 86
Hi community,
 
I'd like to ask how to do a If condition against a choice value from Dataverse. My setup:
I have a Dataverse table: 'RD recipes' which have a column type Choice a with name 'Status (statecode)', there are two options Active and Inactive.
 
I have a gallery GalleryRecipeOverview, and based on a selected item from the gallery I'd like to make a button display mode edit or disabled. 
 
But when this code, I'll recieve an error.
 
but when I put this code inside a label the Value will show without any issue.
 
 
How can I refence the Value? 
 
Categories:
  • Verified answer
    michalparal222 Profile Picture
    86 on 30 Aug 2024 at 11:51:53
    Dataverse Choice column
    While writing the question I found the answer, so it may help to someone else :)
     
    GalleryRecipeOverview.Selected.'Status (statecode)' = 'Status (RD recipes)'.Active

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 371 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 193

#3
stampcoin Profile Picture

stampcoin 147

Overall leaderboard
Loading started