cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
randalloglesby
Level: Powered On

Parallel conditions, only continue once all have completed

What I have:

I have a flow that retrieves a list of rooms that a tour will be going through.

For each room, there is a unique set approvals from each room's owner.

My flow splits into a parallel branch for each room so that the owners can approve their respective rooms for the tour.

 

What I need:

I need to merge the parallel branches back into one sequential flow.

I need a calendar invite that only goes to the approving room owners.

Said invite will list the approving rooms and the denied rooms.

I need to be able to scale up if there are rooms we need to add to the approval structure. 

 

See below for the structure I already have set up.

 

Capture.JPG

4 REPLIES 4
Community Support Team
Community Support Team

Re: Parallel conditions, only continue once all have completed

Hi @randalloglesby,

 

Could you please share a bit more about your scenario?

Do you want to send an Outlook calendar event invite to these approving room owners behind the Parallel branch actions?

 

If you want to send an Outlook calendar event invite to these approving room owners behind the Parallel branch actions, I have made a test, please take a try with the following workaround:23.JPG

 

24.JPG

 

 

Within the Required attendees field of the "Create event (V2)" action, type the following formula:

concat(if(equals(body('Start_an_approval')?['response'],'Approve'),body('Start_an_approval')?['responder']['email'],''),';',if(equals(body('Start_an_approval_2')?['response'],'Approve'),body('Start_an_approval_2')?['responder']['email'],''),';',if(equals(body('Start_an_approval_3')?['response'],'Approve'),body('Start_an_approval_3')?['responder']['email'],''))

Note: On my side, I add three "Start an approval" action within my flow. The Start_an_approvalStart_an_approval_2 and Start_an_approval_3 represents the name of the "Start an approval" actions within my flow. If the amount of your "Start an approval" action is more than 3 within your flow, you could add extra if() function within above formula, the basic if() expression as below:

if(equals(body('Start_an_approval')?['response'],'Approve'),body('Start_an_approval')?['responder']['email'],'')

 

If you could provide more details about your scenario, we would provide a proper workaround for you.

 

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
randalloglesby
Level: Powered On

Re: Parallel conditions, only continue once all have completed

The best way I can describe it would be to give an example, please see below:

 

Bob needs access to Rooms A and C.

Two approvals go out: One to John in Room A and one to Steven in Room C.
If John and Steven both approve the access, then we need a calendar event sent to Bob, John and Steven with the details of Bob's access on the specified date and time. If one of the Room's is denied, then we need the event to only invite the approved Rooms.

 

I hope this helps.

 

randalloglesby
Level: Powered On

Re: Parallel conditions, only continue once all have completed

Is this going to be possible?

randalloglesby
Level: Powered On

Re: Parallel conditions, only continue once all have completed

@v-xida-msft Is my additional information enough to help?

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 42 members 4,307 guests
Please welcome our newest community members: