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

Community site session details

Session Id : xwP5wWqa8KNuws5h+PDgRA
Power Automate - General Discussion
Answered

How do you get the text value for a Choice field in a Power Automat Flow?

Like (0) ShareShare
ReportReport
Posted on 27 May 2021 12:25:56 by 6

In our Power Apps application we have a Choice Field with three options.

 

DVader_0-1622117565299.png

 

As part of our business process we have a Flow that populates a Word template that gets e-mailed. In the flow I have an "Initialize Variable" step that is supposed to get the value from the choice shown above.

 

DVader_1-1622118203299.png

But instead of getting the text value I'm getting the internal ID for the Choice.

 

What do I need to do to get the text value for the choice and not it's internal ID?

 

Thanks!

I have the same question (0)
  • asdfaf4 Profile Picture
    on 11 Mar 2024 at 15:39:49
    Re: How do you get the text value for a Choice field in a Power Automat Flow?

    Microsoft keeps making massive design mistakes.  All display values used to be provided years ago by using the native Dynamics 365 Action or the first batch of Dataverse Action (the purpose or grey ones). Now, it's ten times more complicated to get those basic values.  BAD MOVE...  Why not display them in the picker? Why?  No one from the product management is answer such question.

  • ar87 Profile Picture
    353 on 23 May 2023 at 15:27:11
    Re: How do you get the text value for a Choice field in a Power Automat Flow?

    Hi @FelipePanza,

     

    this post is quite old, but in case you still need a solution, you could try retrieving the value of choice field with the following formula:

    first(outputs('List_rows')?['body/value'])['column_name@OData.Community.Display.V1.FormattedValue']

     

  • FelipePanza Profile Picture
    84 on 13 Oct 2022 at 18:48:15
    Re: How do you get the text value for a Choice field in a Power Automat Flow?

    @Expiscornovus Hi, I tried your method with List row, but I do not work. Does it only with Get ro by id?

  • DVader Profile Picture
    6 on 27 May 2021 at 14:22:57
    Re: How do you get the text value for a Choice field in a Power Automat Flow?

    @Expiscornovus Thanks so much. That worked!

  • Verified answer
    Expiscornovus Profile Picture
    32,563 Most Valuable Professional on 27 May 2021 at 13:29:37
    Re: How do you get the text value for a Choice field in a Power Automat Flow?

    Hi @DVader,

     

    You could use an expression to retrieve the label via the OData.Community.Display.V1.FormattedValue. 

     

    Below is an example with customertypecode.

     

    The value would be:

    outputs('Get_a_row_by_ID')?['body/customertypecode']

     

    The label is:

    outputs('Get_a_row_by_ID')?['body/customertypecode@OData.Community.Display.V1.FormattedValue']

    expression_customertypecodelabel.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 707 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 499 Moderator

#3
chiaraalina Profile Picture

chiaraalina 312

Last 30 days Overall leaderboard