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 / How to refer to the "v...
Power Apps
Answered

How to refer to the "value" of a yes/no option selection

(0) ShareShare
ReportReport
Posted on by 14

Hi, Power Community,

 

For the life of me, I can't find how to refer to the value of a Yes/No option selection from Dataverse.  In the below image, I'm trying to set the default boolean value to a toggle from a record from Dataverse:

SelectedRequest - record from Datavase

Referral Source - boolean column of the item

If nothing is selected from Dataverse, populate with the value from galVendors in the app.  This is fine

Otherwise, populate it with the value in the Dataverse record, which is asking for the value of the OptionSetValue.  I've tried different combos of .Selected, .Value, Value(), etc. to no avail.  And searching thru the web suggests something may be done with using a JSON body, put it in a collection, and such but there has to be a sensible way of referring to the underlying value of a selected boolean option.  Help, please!

 

qqqqqqqqqqqqqqq_5-1634510625634.png

 

 

 

 

 

 

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

    Update...

     

    Isolated the error and found that it only showed when both the values from the gallery control and the Dataverse record are used directly

    If(IsBlank(SelectedRequest), galVendors.Selected.'Is Referral Source')  fine

    If(IsBlank(SelectedRequest), SelectedRequest.'Referral Source')  also fine

    It's when both are used that it throws an error arguing the value of the OptionSetValue in the Dataverse record be supplied

    So worked around it and indirectly supplied the value from the gallery to the formula and no error

    qqqqqqqqqqqqqqq_0-1634513858901.png

    Don't understand why the conflict occurred when both record values are used, but hope this helps someone who comes upon the same problem

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 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard