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 Automate / Choice Field - using d...
Power Automate
Unanswered

Choice Field - using dataverse Label rather than Value, in Flow expressions

(0) ShareShare
ReportReport
Posted on by 42

In our order processing system, we have a Choice Field. 

 

ArtieLeech_0-1660136661668.png

 

Additionally, our Orders table has a field which refers to this Choice Field.

 

When our flow processes Orders, currently we compare the Order's Order Status to the numeric Value above, which we don't like:

 

ArtieLeech_1-1660136826655.png

 

We'd prefer to use the Label instead, something like below (so we don't have to care about the underlying value in flows, just the Choice Field's Label)

 

ArtieLeech_2-1660136891151.png

 

How can we do this?

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @ArtieLeech , can you share the flow above if possible? I might be able to provide a solution. 

  • ArtieLeech Profile Picture
    42 on at

    Hi @Sundeep_Malik, I've added a screenshot of another flow which uses a similar pattern below.

     

    In this one, in the Switch Equals clauses, we'd rather use the Labels that equate to the long integer values, i.e. New, In Progress, Fulfilled.

     

    In other words, like an enum in C#.

     

    ArtieLeech_0-1660248741417.png

     

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @ArtieLeech,


    You could use the label part of the field, there should be a separate attribute for that.

     

    orderstatuslabel_dataverse.png

     

    To give you an example.

    My choice field is called crca4_orderstatus. The label would be _crca4_orderstatus_label.

     

    In an expression that would be:

     

    triggerOutputs()?['body/_crca4_orderstatus_label']

     

     

    orderstatuslabel_dataverse_condition.png

     

     

  • ArtieLeech Profile Picture
    42 on at

    @Expiscornovus , thanks for this suggestion.   How would this tie in with us having the OrderStatus passed into our Flow as its numeric value?

     

    Is there a way we could have it so we can say something like

     

    _crca4_orderstatus_label.New

     

    so that the Flow Checker would detect an error if, say, we renamed New to Open?

     

  • GrantBaker Profile Picture
    6 on at

    I had the same problem and found the solution here: https://www.encorebusiness.com/blog/power-automate-get-choice-label-metadata/

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard