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 / 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 286

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
    286 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
    286 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
    286 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard