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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I get the inte...
Power Automate
Unanswered

How can I get the integer/value of a Dataverse choice item?

(0) ShareShare
ReportReport
Posted on by 455

Greetings, all. I am trying to dynamically set a Dataverse Choice column but cannot figure out a simple way to get the value for a specific Dataverse Choice. Does anyone know how to look up a specific choice's integer value?

Categories:
I have the same question (0)
  • harshdeol Profile Picture
    441 Moderator on at

    Hi @arpost , Microsoft Dataverse stores choice columns and their values in the "String Maps" table. To get the "Value" of Dataverse Choice Column dynamically, you need to add few more actions in the power automate flow. Here are the details:

     

    //Microsoft Dataverse

    I created a sample Dataverse table named as "Test Table" and created a choice type column with name "Community" and this choice is synced with a Global Choice named as "Community Type".

    In my example,

    Table Name = Test Table (hd_testtable)

    Column Name (Choice)= Community (hd_community)

    Global Choice Name = Community Type (hd_communitytype)

    harshdeol_2-1717857036847.png

    If I want the Integer value of the Choice "Power Automate". To get this below are the configuration of the flow:

    //Power Automate Flow:

     

    Now, In power automate flow, Add a Dataverse "List rows" action with following input parameters:

     

    Table name: String Maps
    Select columns: value, attributevalue (Optional - To get only selected columns.)
    Filter rows: objecttypecode eq 'YourTableName' and attributename eq 'YourChoiceColumnName'

     

     

    //Filter Array:

    Add a filter array to Filter Specific Choice based on their Name (Label). Add the required input parameters as given in the image below.

     

    From: outputs('List_rows')?['body/value']
    
    item()?['value'] is equals to YourChoiceLabel

     

     

    //Compose:

    Add a compose action to see the integer (Value) of the Choice. 

     

    first(body('Filter_array'))?['attributevalue']

     

     

    Here is the complete flow:

    harshdeol_0-1717856377850.png

    Output:

    As we passed the Label as Power Automate in the "Filter Array" so as output we received 999990001. See the attached image:

    harshdeol_1-1717856848866.png

    Please try this at you end and let me know if you face any issues.

     

    -----------------------------------------------------------------------------------------------------------------
    If your question got an answer, please click "Accept as Solution "✅, If you liked my answer, please hit the "thumbs-up" 👍button.

    Thank you,
    Harsh Deol

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard