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 / In the 'Send an Email ...
Power Automate
Answered

In the 'Send an Email (V2)' step of an Automated Flow, the 'Choice' fields display their code and not their value

(0) ShareShare
ReportReport
Posted on by 290

Hello everyone,

 

I have this Automated Flow triggered by a Dataverse table being changed ('When a row is added, modified, or deleted').

 

Basically, after the trigger, I am sending an email.

 

In the email body, I am selecting various field via the Dynamic content. 

 

However, if the field is a Choice, the email includes the code for that value (say, '123480000' instead of 'Apples').

 

The field is also displayed once in the 'Dynamic content' list, so I am not choosing a wrong line...

 

How can I solve this, please? Surely I'm not the first person to have this problem.

 

Thank you!

 

Alice

Categories:
I have the same question (0)
  • Verified answer
    NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @AliceW !

     

    Use the Get Row by ID to get the row which got created, modified or deleted.

    NathanAlvares24_0-1719496204112.png

    NathanAlvares24_1-1719496249665.png

    Expression used here:

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

     

    NathanAlvares24_2-1719496318757.png

    Say I changed this to Bananas.

     

    Output:

    NathanAlvares24_3-1719496356870.png

     

    The reason why that error was happening, please take a look below:

    NathanAlvares24_4-1719496484498.png

     

    Check the output of your Get a row by ID from your run history.

    The choice label values comes in the red box while the choice value comes in the yellow box.

     

    So to get the choice label values, it usually starts with the logical name of that column + 

    @OData.Community.Display.V1.FormattedValue
     
    Example: 
     
    I hope this helps.
  • AliceW Profile Picture
    290 on at

    Hi Nathan,

    First of all, thank you SO MUCH for your reply. Second, I'm not getting the 'Get a row by ID' step.

    Like, the step 'When a row is added..' is taken from a table called 'Tree 22'. 

    I added a 'Get a row by ID' and, for the Row ID, I selected that column, 'Fruits'. I got an error:

    AliceW_0-1719498725882.png

     

  • AliceW Profile Picture
    290 on at

    Basically, if the Trigger is from the 'Tree 22' table, and I try to do a 'Get a row by ID' from the SAME table, it crashes. 

  • Verified answer
    NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @AliceW !

     

    Can you show me the configuration of that action? Like this:

    NathanAlvares24_0-1719499063643.png

    Then you can check if that table logical name is same in Power Apps only id gets added at the end:

    NathanAlvares24_1-1719499216733.png

     

    It will be an id which is not one of your columns:

    NathanAlvares24_2-1719499931221.png

     

  • Verified answer
    NathanAlvares24 Profile Picture
    1,714 Moderator on at

    @AliceW 

     

    See this:

    Please Use Unique identifier for entity instance Dynamic value in Row ID Field of Get a row by ID Action which return By When a row is selected Action After this, I guess you are good to go.

     

    NathanAlvares24_0-1719500240704.png

     

     

  • AliceW Profile Picture
    290 on at

    Nathan, it actually works! Sweet, sweet victory! 

     

    I had to use the 'Tree 22''s unique identifier in the 'Get a row by ID' step, which you TOTALLY mentioned in your screenshot!

     

    I had to reread it several times for it to sink in 🙂

     

    Thanks again, man! You did a good deed today!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard