cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Shannon
Level: Powered On

How to get option set text instead of value from Dynamics 365

I am connecting to Dynamics 365, and want to have a condition that checks if an Option Set value is equal to "Yes". In CRM though, option sets have values like 3000758, which is what comes through in Flow. How can I get the text of an option set field? Do I have to use the int value of the option set field?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to get option set text instead of value from Dynamics 365

Hi @Shannon,

 

You won't be able to get the text value of the optionset from flow. Can you please explain why you need to check the text values?

 

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!



7 REPLIES 7
Super User
Super User

Re: How to get option set text instead of value from Dynamics 365

Hi @Shannon,

 

You won't be able to get the text value of the optionset from flow. Can you please explain why you need to check the text values?

 

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!



Shannon
Level: Powered On

Re: How to get option set text instead of value from Dynamics 365

Just figured it would make the Flow look a little more intuitive, rather than having to check back at what a number is equivalent to.

Super User
Super User

Re: How to get option set text instead of value from Dynamics 365

Hi @Shannon,

 

You can add comments in your flow templates. I would prefer to check via number than a hardcoded text. If the text changes then there are depencies like flow and others to change which won't be a good design in my opinion.

 

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!



hazems
Level: Power Up

Re: How to get option set text instead of value from Dynamics 365

We sometimes use the dynamics content in a triggered email. So for we want the text value to display in the email instead of 1000000001.

Shannon
Level: Powered On

Re: How to get option set text instead of value from Dynamics 365

@hazems another good point on why this would be useful. I can see arguments both ways on why we should/shouldn't be able to do this, but I think it the user should be able to use their discretion on whether or not to pull text vs. value.

 

I've created an Idea post, where you can upvote this if you'd like.

sips1
Level: Powered On

Re: How to get option set text instead of value from Dynamics 365

I agree with @Shannon and have voted for this feature.  I need to show the text rather than the numeric value in an email.   The numeric value means nothing to the email recipient.

Shaboo992
Level: Powered On

Re: How to get option set text instead of value from Dynamics 365

Hi Azems,

 

Easy solution!

 

Found the easy solution add a label to the suffix to the field attribute schema name.

 

Example: Field attribute "ab_accountype" replace with "_ab_accounttype_label"

 

Which works for me.

 

Thank you

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 510 members 4,652 guests
Please welcome our newest community members: