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 : 3oOEzB/va3wVHBTTJZNg02
Power Automate - Building Flows
Answered

Converting Option Set Values to Labels using Dataverse

Like (0) ShareShare
ReportReport
Posted on 1 Sep 2021 13:39:26 by

Hello!

 

I found this article about getting the label of an option set value, but it's all referring to the old CDS rather than Dataverse so I'm hoping to get an updated answer. 

 

In my flow, when a Lead is created, I'd like to send an email containing the labels from an option set in the Lead. 

 

Thanks in advance!

  • JulioVicente Profile Picture
    2 on 10 Feb 2023 at 12:51:09
    Re: Converting Option Set Values to Labels using Dataverse

    Try https://jamesyumnam.com/2022/01/12/using-values-from-dataverse-choice-and-choices-columns-in-power-automate-flow/

    great article about it

  • Community Power Platform Member Profile Picture
    on 08 Oct 2021 at 14:50:55
    Re: Converting Option Set Values to Labels using Dataverse

    Hi @Gaznae - thanks! I finally managed to figure it all out with your help. Really appreciate it. 

     

    Here it is for anyone seeing this in the future and wanting to understand the whole thing:

    How to show values in flows.PNG

     

     

  • Gaznae (MVP) Profile Picture
    69 on 06 Oct 2021 at 14:45:54
    Re: Converting Option Set Values to Labels using Dataverse

    Hi, @Anonymous 

     

    You will need to change triggerOutputs() to the output of the action where this field is present. For example, body('Create Lead')?

  • Community Power Platform Member Profile Picture
    on 05 Oct 2021 at 13:18:20
    Re: Converting Option Set Values to Labels using Dataverse

    Hiya @Gaznae

     

    I tried this with my field which is called "samar_websitefieldisoqarstandards" and put in an expression like this:

     

    triggerOutputs()?['body/samar_websitefieldisoqarstandards@OData.Community.Display.V1.FormattedValue']

     

    It lets me add this to a Compose stage, but when I add that to an email, even if the field contains data, it comes back blank in the email. Am I missing a step somewhere?

     

    I ended up following this guide: https://linnzawwin.blogspot.com/2020/07/get-lookup-display-name-and-option-set.html

     

    Thanks for your help so far.

  • Verified answer
    Gaznae (MVP) Profile Picture
    69 on 01 Sep 2021 at 18:06:44
    Re: Converting Option Set Values to Labels using Dataverse

    Hi, @Anonymous 

     

    I think the following would work. I have used the same example used in your link to show a before and after.

     

    Before: Triggeroutputs()?['body/_leadqualitycode_label']

    After: Triggeroutputs()?['body/leadqualitycode@OData.Community.Display.V1.FormattedValue]

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete