web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get option set ...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 44

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?

Categories:
  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    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

  • ss_tls Profile Picture
    44 on at

    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.

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    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

  • hazems Profile Picture
    10 on at

    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.

  • ss_tls Profile Picture
    44 on at

    @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 Profile Picture
    43 on at

    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.

  • shaboo Profile Picture
    65 on at

    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

  • j_machale Profile Picture
    10 on at

    We also want to read a record and send an email, one of the values is an option set but it looks like currently we can't read the text value - the numbers are meaningless so looks like we would have to hardcode them in in the flow and use a switch statement as this is the only workaround I have seen.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Adding an "_value" (see post above from Shaboo992) worked for me...until yesterday. Now it no longer works. All I get is the value now. We need the text label for an integration we have with Sharepoint.

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @NelsonJohnson 

     

    Could you please post your run time history values where it retrieves the option set value?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard