cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JDaniels-007
Frequent Visitor

Needing to email different addresses based on multiple text values from Sharepoint

Hello,

I have a SPO list that has a dropdown field called "region" with values 1,2,3,4,5,6,7,8. I need to have a flow that needs to send an email to a certain address based on the region chosen. There will be multiple records and this flow will be scheduled so it will look at all records when running.

 

IF region is 1, 2, or 3 needs to email mailbox1@domain.com

IF region is 4, 5, or 6 needs to email mailbox2@domain.com

IF region is 7 or 8, an email is not needed to send.

 

I've looked at doing a conditional IF, but am having issues with multiple region text values and setting the email address as a variable based on those.

Any ideas on how this might be accomplished with the fewest steps possible?

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

HI @JDaniels-007,

If you want to send email based on different regions selected, I think condition or Switch could achieve your need.

 

However, the Switch control could only identify a single case to execute based on the evaluation of the switch input. So it could be 7 branches switch input if you use the Switch control.

vqiaqimsft_0-1655358798107.png

 

If you use the condition, you just need three steps:

vqiaqimsft_2-1655359225857.png

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

HI @JDaniels-007,

If you want to send email based on different regions selected, I think condition or Switch could achieve your need.

 

However, the Switch control could only identify a single case to execute based on the evaluation of the switch input. So it could be 7 branches switch input if you use the Switch control.

vqiaqimsft_0-1655358798107.png

 

If you use the condition, you just need three steps:

vqiaqimsft_2-1655359225857.png

 

Best Regards,
Qi
JDaniels-007
Frequent Visitor

Qi, thank you so very much. I went with the condition.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,575)