cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

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.

View solution in original post

1 REPLY 1
v-zhos-msft
Level 10

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.

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,447)