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.

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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow 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 Flow Community Video Gallery!

Users Online
Currently online: 203 members 4,767 guests
Please welcome our newest community members: