cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,362)