I have created a flow where we are using a condition to send an email if Yes. There is a different email address for each State but since the nesting limit is 8 I am not sure how to accomplish it. If Clinician is equal to Meets Criteria and Does Not Meet Criteria and the State is IL then send email to IL@xxx.com. Then if no and Clinician is equal to Meets Criteria and Does Not Meet Criteria and the State is MT then send email to MT@xxx.com. Is there a way to group them but have them send emails to different addresses? Any help would be appreciated.
Hi There! So, a couple of different options:
For situations where you've got a couple of different choices, consider a Switch vs. a Condition. That lets you have many paths rather than nesting a binary choice. But...this might also work:
Initialize a string variable at the beginning and set it to the state, then at any point where it needs to send the email, you can maybe put the 'firstname.lastname@example.org for the "To:" rather than building 50 different paths. What do you think?
Keep us posted, either way.
If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
You can use expressions in Flow conditions to write complex nested conditions
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!