cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ac1drain
Helper I
Helper I

How to get the name from a choice field in a Dataverse record instead of the value?

I'm using 'Get a row by ID' to populate an email action with information from a Dataverse record. One of the fields happens to be a choice field, but in the body of my email I'm getting the value of the choice (eg. 717750001) instead of the name.

 

I feel like I've done this in the past, but that would've been under the Microsoft Dataverse (legacy) triggers/actions so I'm not sure if there is something I need to be doing differently now?

 

Thanks in advance for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User
Super User

Hi @ac1drain 

 

Try the below using the expression

 

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

 

Here above 'Get_a_row_by_ID' is my previous step action name and ajb_type is my option set field.

 

image.png

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User
Super User

Hi @ac1drain 

 

Try the below using the expression

 

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

 

Here above 'Get_a_row_by_ID' is my previous step action name and ajb_type is my option set field.

 

image.png

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Thanks for your quick reply @abm, worked like a charm!

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!

Top Solution Authors
Users online (6,165)