Skip to main content

Notifications

Power Automate - General Discussion
Answered

How can I get a response in Forms to be different in an email.

(0) ShareShare
ReportReport
Posted on by

I have a Form that asks the user to pick from three different names. These names have an ID associated with them in our code. I am sending an email to the developers when the Form is submitted. For the requestor, it is important to have the name which they understand but for the coders, they would like for the ID to be in the email.

 

How do I associate the name to an ID as a Dynamic Expression for example if 'Name', equals 'Name1' than 'ID1' or if 'Name', equals 'Name2' than 'ID2' etc.... 

  • Verified answer
    v-zhos-msft Profile Picture
    v-zhos-msft on at
    Re: How can I get a response in Forms to be different in an email.

    Hi @Anonymous ,

    You want to associated three different Names to three different Ids.

    I have made a test on my side, please take a try with the following workaround:

    The expression in Compose is: if(equals(body('Get_response_details')?['Name'],'Name1'),'ID1',if(equals(body('Get_response_details')?['Name'],'Name2'),'ID2','ID3'))

    5.png

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard