Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Get Option set value label from List Rows

(0) ShareShare
ReportReport
Posted on by 243
Hi All,
 
I'm hitting a bit of a wall with getting the option set value label from List Rows.
Essentially I am setting the outputs into a CSV and this seems to always show up blank.
 
 
I've tried to get the output using the following expressions:
 
outputs('List_rows')?['body/OPTIONSET_NAME_label']
Triggeroutputs()?['body/OPTIONSET_NAME@OData.Community.Display.V1.FormattedValue']
outputs(‘List_rows’)?[‘body/OPTIONSET_NAME@OData.Community.Display.V1.FormattedValue']
 
I have also tried Parsing JSON but can't initialize the variable in an apply to each.
 
Any ideas where I'm going wrong?
 
Cheers
Sam
  • Sam Conroy Profile Picture
    Sam Conroy 243 on at
    Get Option set value label from List Rows
    Thank you Dengliang, that worked perfectly. 
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Get Option set value label from List Rows
    Hi,
     
    In my test, get the label of the Contact Method option set field in the Contact entity.
     
    The Power Automate Flow is shown below.
     
    The value of the ContactMethod property is: item()?['preferredcontactmethodcode@OData.Community.Display.V1.FormattedValue']
     
    The test results show information for all contacts. 
     
     Below are links that can be referenced.

    Best Regards,
    Dengliang Li
     

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans