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