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

Community site session details

Session Id : M3ACRrXNombdmjyq1MStIS
Power Automate - General Discussion
Answered

ID of a choice appearing instead of the question in Approval Email

Like (0) ShareShare
ReportReport
Posted on 6 Oct 2023 08:45:54 by 29

I am writing a flow where the approver will get an email to approve/reject. In the details, I want to provide information what the user filled. However, they are in choices and when I take the dynamic expression, the approver see's the choice ID instead of the actual name of the choice. For example, for the Faculty column, the user will see Faculty: 921090002 instead of Faculty: Arts in the email. How do I fix this in the flow?

I have the same question (0)
  • smital Profile Picture
    29 on 10 Oct 2023 at 09:54:48
    Re: ID of a choice appearing instead of the question in Approval Email

    Yes I checked it. Your solution worked! For my case, I just needed to initialize a variable so I can add it to the details. It now works:

     

    smital_0-1696931677208.png

    Thanks for your help!

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 10 Oct 2023 at 03:49:20
    Re: ID of a choice appearing instead of the question in Approval Email

    Are you able to investigate the JSON for the Law request?

     

  • smital Profile Picture
    29 on 10 Oct 2023 at 03:25:55
    Re: ID of a choice appearing instead of the question in Approval Email

    Thanks for the solution. I did manage to see the code like you showed: 

    smital_0-1696907601902.png

     

    Issue is when I do the second part (apply to each and compose with the item expression), it just gives me "Engineering" as the output. That I think is because in the list rows code, "Engineering" is the value there. 

     

    smital_1-1696907888428.png

     

    In the test I did, it was a "Law" request. In the body of the email, I put the faculty dynamic content (you can ignore the title - I did not put it there):

    Screenshot 2023-10-10 112942.png

     

    As you can see, the value is there - not the faculty name. I tried doing the same process but by initializing a variable and then putting the same item expression as the value. It did not work. Is there any way to get the faculty name as a variable?


    Thanks for your help.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 09 Oct 2023 at 11:14:54
    Re: ID of a choice appearing instead of the question in Approval Email

    This is by design. Dataverse returns the value of the Choice field. To display the text, inspect the output of List rows

    SudeepGhatakNZ_0-1696849750787.png

     

    Find the fields that displays the Text and Value

     

    SudeepGhatakNZ_1-1696849863691.png

     

    You can extract the Value by specifying the tag name

     

    SudeepGhatakNZ_2-1696850019410.png

     

    SudeepGhatakNZ_3-1696850086878.png

     

  • smital Profile Picture
    29 on 09 Oct 2023 at 04:00:29
    Re: ID of a choice appearing instead of the question in Approval Email

    Sure, here are the choices for my column:

    smital_0-1696823793666.png

     

    When I try putting this into the flow, I want the text column to appear. In the details, I add the Faculty column in the dynamic content:

    smital_1-1696823973503.png

    I have tried initializing the Faculty variable into string but as expected, it is just taking the ID value and converting it from a number into a string (but it is still the ID, not the text).

     

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 06 Oct 2023 at 10:03:23
    Re: ID of a choice appearing instead of the question in Approval Email

    Please share a screenshot of the action where you have used the Choice column from Dynamic content.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard