cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Waegemma
Super User
Super User

Approval inside switch statement - each case simultaneously or in series?

Hi,

 

I haven't used approvals before, and couldn't find an answer to this question:

 

I have a flow which is triggered when a SP listitem is changed and a yes/no column is false.

 

The SP list has a choices column with multiple selections enabled.

A switch control checks which choices are selected.

Inside each case an approval process is started.

 

My question: does the switch start all the approvals simultaneously, or does it wait for each separate approval to be confirmed/rejected before it moves on to the next case?

 

I'm writing it in this (convoluted) way because I want the mostly non-tech minded users to only have to push a button for confirmation, instead of replying to a mail.

 

Thanks in advance,

Marc

1 ACCEPTED SOLUTION

Accepted Solutions

@Waegemma  Yes it will apply to whole flow. Approval action will wait for input.

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

View solution in original post

3 REPLIES 3
Hardesh15
Super User
Super User

@Waegemma  In Switch once input is matched with your case then it execute that case brach further. Other cases will not be executed only one case at a time.

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

Waegemma
Super User
Super User

Hi @Hardesh15 ,

 

You're right about one case at a time,

what I wanted to know was: does the complete Flow wait on the approval proces inside the matched case?

 

The multiple choices are extracted one by one in a For Each loop, and then matched in a switch statement against different cases, when a case matches, a Start Approval and Wait begins.

 

So does this 'Wait' imply the whole Flow waits ?

 

Greetings,

Marc

 

@Waegemma  Yes it will apply to whole flow. Approval action will wait for input.

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,921)