cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Audreyma
Helper III
Helper III

How to get option set label text in power automate?

Hi everyone,

I have a column using option set. 

Now in power automate, I want to output the option set label instead of value.

 

Part of my flow screenshot

Audreyma_1-1659694188826.png

 

Referring to the below article, I tried inputting the following formulas in "Data Create" step, neither worked.  Output is just blank.

Get Option Set Labels in Power Automate flows - CloudFronts

Formula 1: outputs('List Record')?['body/value/cr8f8_solu_request@OData.Community.Display.V1.FormattedValue']

Formula 2: outputs('List Record')?['body/cr8f8_solu_request@OData.Community.Display.V1.FormattedValue']

Having checked the output of "List Record" step, I don't know what the issue is.  Any idea about it?

Audreyma_2-1659694517312.png

 

 

1 REPLY 1
MarconettiMarco
Super User
Super User

Hello @Audreyma ,

your "List record" action output should be an array, so the "Compose" action must be in an "Apply to each" control.

Then you should add the following expression in the "Compose" action:

items('Apply_to_each')?['body/cr8f8_solu_request@OData.Community.Display.V1.FormattedValue'] 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

BR,

Marco

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,567)