Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Conditional multiple approvals

(0) ShareShare
ReportReport
Posted on by 70

I want to be able to send email approvals dynamically depending on what answer the user puts in the question.

This question is quite literally, "pick all people that apply"

ay2_0-1593193021422.png

 

So they can pick 1, any 2, any 3, or all 4 options available - and in turn the flow would be able to look at these answers and send an email depending on what they choose above. What is the best way to achieve this? 

 

Thanks!

  • ay2 Profile Picture
    70 on at
    Re: Conditional multiple approvals

    @ScottShearer 

     

    Thanks for your response. So the answer is that each person in the screenshot (Person 1, Person 2, Person 3) is someone that CAN be selected for approval. It could be any combination of people, but whoever is selected HAS to be sent an approval message. So in the previous picture I posted, I counted a total of 8 permutations so I figured there would need to be 8 cases in a switch control. I tried creating an array of the approvers, but when I run the flow it says the options the user selects are only of type string and can't be put in an array. Since the form itself is a "multiple answer" choice question, I somehow can't reference each person. I think if i knew how to do that I would be golden. Maybe i'm not understanding the delimited string, as I also tried to use the semicolon as the "equals" in the switch case. In that situation, a screenshot of an example would be very helpful.

     

    Thanks,

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: Conditional multiple approvals

    @ay2 

    I suggest that the answer to your question depends on what type of approval you intend to create.  Do you want to have a separate approval action for each individual selected?  If so, then create an array of approvers and put your approval inside of a loop.  You'll loop through each element in an array.  Also, you'll need to set concurrency control to On for the loop - that way the approvals will execute in a parallel fashion rather than sequentially.

    If you want a single approval set to All must approve, then create a semicolon delimited string of the email addresses of the individuals who have been selected.  Use that string for the approver.

     

     

  • ay2 Profile Picture
    70 on at
    Re: Conditional multiple approvals

    @mcin9781 

    ay2_0-1593433688345.png

    Here is a screenshot of what it looks like. There's two switch cases, it enters the first case (green) perfectly fine, but the Orange highlight in variable "a" doesn't seem to like it on switch 2. Always goes to default case

  • ay2 Profile Picture
    70 on at
    Re: Conditional multiple approvals

    Hi @mcin9781 

     

    I am familiar with switch cases and use them in other parts of the flow, but since each case requires an "Equals" how do I handle all the permutations that the user can pick? 

    1) Person 1

    2) Person 2

    3) Person 3

    4) No one

    5) Person 1, Person 2

    6) Person 1, Person 3

    7) Person 2, Person 3

    😎 Person 1, Person 2, Person 3

     

    Since this is a multiple answers question on the form, I need to account for all of these. I checked if my variable equals Person 1, Person 2 but when I test it, it fails that switch case. Any thoughts?

  • mcin9781 Profile Picture
    on at
    Re: Conditional multiple approvals

    You could use a switch case.  This should solve your issue.

     

    https://community.dynamics.com/365/b/d365demystified/posts/switch-case-in-a-flow-power-automate

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1