A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi,
Thank you for the updates.
Based on your example, “if the city is Los Angeles, I would like the email to go to both John Doe AND Jane Doe”, I used the formula below to return two email values for Los Angeles and other cities.
**=IF([City column]="Los Angeles","John ******@email.com;Jane ******@email.com ",IF([City column]="New York","John ******@email.com; Jane ******@email.com ",IF([City column]="Miami","John ******@email.com; Jane ******@email.com ",IF([City column]="Houston","John ****@email.com; **Jane ****@email.com "))))
Note: If Power Automate is sending an email based on the value in the SharePoint List Calculated Column and you can try to place “;” between the two email address in the Formula. For example:
**=IF([City column]="Los Angeles","John ******@email.com;Jane ******@email.com ",IF([City column]="New York","John ******@email.com;Jane ******@email.com ",IF([City column]="Miami","John ******@email.com;Jane ******@email.com ",IF([City column]="Houston","John ******@email.com;Jane ****@email.com "))))
For the number of parenthesis to put, you just count the number of “IF” you used and put the same number of parenthesis at the end.
About the “I would also like to have a formula that says if the city is Los Angeles OR New York OR Miami, email John Doe AND Jane Doe. “, use below formula:
**=IF([City column]="Los Angeles","John ******@email.com;Jane ******@email.com ",IF([City column]="New York","John ******@email.com;Jane ******@email.com ",IF([City column]="Miami"," John ******@email.com;Jane ****@email.com")))
Have a good day.
Regards,
Christophe