Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +RFeAmm//Q/7plvXaCsbCl
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 83 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 49

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard
Loading started