web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / I want using Option Se...
Power Apps
Unanswered

I want using Option Set field choose label value

(1) ShareShare
ReportReport
Posted on by 32

I have created an entity using the option set.

In Flow, however, [value] can be selected but [label] can not be selected.

Does anyone know how to display label characters?

 

koby

I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @koby,

    Could you please share a screenshot about your flow's configuration? Is it a Microsoft Flow?

    Further, do you want to get the OptionSetField_[Label] property within your flow?

     

    I have made a test, and the issue is confirmed on my side. The Option Set Filed_[Label] property could not be selected directly within the Dynamic content panel, the screenshot as below:3.JPGNote: The Approval_Status column is a Option Set type column within my CDS Entity (On my side, it is TaskLists). We could only select Option Set Field_[Value] property (dynamic content) within the Dynamic content panel.

     

    If you want to get the Option Set Filed_[Label] property within your flow, please take a try with the following workaround:5.JPG

    Within Map field of "Select" action, enter two entries. The Key of first entry set to Approval Status Label, corresponding Value set to following formula:

     

    item()?['_crd1f_approve_status_label']

    On your side, you should type:

    item()?['_crd1f_YourOptionSetField_label']

    The Key of second entry set to Approval Status Value, corresponding Value set to Approval_Status Value dynamic content.

    The flow works successfully as below:6.JPG

    On your side, in order to get corresponding [Label] property related to your Option Set field, you should add a "List records" action within your flow and run your flow, then expand the "List records" action run history, the [Label] property (marked as yellow) would show up as below:4.JPG

     

    More details about using expression in flow actions, please check the following article:

    https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/

     

    Best regards,

    Kris

     

  • Verified answer
    koby Profile Picture
    32 on at

    Hi Kris

     

    Thank you for your response.

    It was a very understandable answer.

     

    I will also share this information in Japan.

     

    Arigato.

     

    koby

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @koby,

    Have you solved your problem?

     

    If you have solved your problem, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify.

     

    Best regards,

    Kris

  • Verified answer
    tcorcor1 Profile Picture
    23 on at

    Hi Koby,

     

    All you need to do is input an expression like the below example into the field. 

     

    i.e. Field schema name is xpp_objective:

     

    Add this expression into the field (assuming the field is in the triggerBody):

     

    triggerBody()?['_xpp_objective_label']


    This will give you the label as a result

     

     

     

     

  • SimonNie Profile Picture
    65 on at

    That does not seem to work for the "Common Data Service (current environment)" / List records connector. The label is not even fetched from the CDS, it is not even available in the JSON response.

     

  • MS5 Profile Picture
    118 on at

    Hi @v-xida-msft,

     

    Great answer! It helped me a lot. Just in case someone is interested in using this with formatting emails, the solution would be to use the triggerBody function, for example, copying this where you want the label to appear:

     

    @{triggerBody()?['_cr027_sociedad_label']}

     

    Where sociedad is the name of my field.

     

    I have a similar issue and I am sure you know how to solve it. I am trying to do the same thing for the two options field, but when using the "List records" function in the flow I can't find the label for this field (the labels for the Option Set fields do appear).

     

    Thanks in advance!

     

    MS

  • Community Power Platform Member Profile Picture
    on at

    This should be the preferred solution. It is so much simpler and does not require you to create additional steps in your flow.

  • Community Power Platform Member Profile Picture
    on at

    Hello @tcorcor1,

    Thanks for posting this. It worked for me great.

    I'm using the Common Data Service (Current Environment) connector.

    I'm creating a Task record whenever a Power App Apps record is created in the Centre of Excellence model-driven app.

    I wanted to get the label of the option set value for the field "App Type" (schema name admin_powerappstype).

    In my Task I selected the Dynamic content and used the field App Type.

    When the Flow ran I just got the option set number, example: 597910000. See image below.

    So I used your suggestion and in Expressions added this triggerBody()?['_admin_powerappstype_label']

    It worked a treat. See below. This is the description field on my Task record.

     

    Task.jpg

     

    One funky thing I noticed is that when I created the expression and saved the Flow, when I did a Test the Flow either failed or the expression content didn't show in the Task, I can't remember which, sorry. Either way it didn't work. I then have to go back to the Flow details page, where it shows the Name, Description etc, refresh the page, then when I go into the Flow again it works all fine. Odd, but this happens several times to me. A Microsoft Support Agent showed me this trick. 

     

    Anyway, thanks so much for posting this and saving me from a big headache.

    Garry

  • Hoang Profile Picture
    Microsoft Employee on at
    You need to add "Get a Record" step
  • MauSolWon Profile Picture
    Microsoft Employee on at

    @{item()?['_crf1b_role_label']} also works when sending an email. 

     

    _crf1b_role_label is the name of the label of your custom field.

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard