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

3 separate conditional statements with 3 actions...1 flow or 3 flows?

I have 3 conditional statements that basically check a company record (in D365) from a custom entity record update, and then update the address field on the custom entity if the company lookup has a value in it. On this custom entity, there are 3 sets of company lookups that all check for that company's address and set the associated address field on the custom entity. 

 

I have this flow working for 1 of my company lookups. Now I need to deal with the other 2.

 

1) Should I use the same MS Flow to handle all 3 of the conditional checks and actions, or should I create a separate flow for each of those conditional checks?

2) If I use 1, how do I create an additional conditional statement that is not dependent on prior yes/no branching from the conditional actions before it?

1 ACCEPTED SOLUTION

Accepted Solutions
jwhite
Level 8

Re: 3 separate conditional statements with 3 actions...1 flow or 3 flows?

Hi @saturation,

 

There are pros and cons for having the conditions run in the same flow or in different ones. Personally I prefer to have flows relating to one type of task combined, however this can lead to things being more difficult to troubleshoot as if one branch fails the whole thing will be marked as failed and if you then want to resubmit that flow run you may end up duplicating data.

 

Depending on your situation and how regularly these flows will run you might also need to consider the benefit of having just 1 flow run vs 3 flows run if you need to be cautious of your tenants flow run limit.

 

If you do wish to have the 3 conditions run independantly within the same flow you can take advantage of parallel branches. This is an option you are offered when adding an action from the "+" button between two tasks:

ParallelBranch.png

 

You can then create independant brances from a specified point:

conditionbranch.png

These will run without interaction from the other branches.

You could then return these to a single branch by adding a new step beneath the parallel tasks:

 

branchjoin.png

This task will then only run after all connected branches have completed.


Let me know if this helps or if there is anything else you would like to know!

View solution in original post

2 REPLIES 2
jwhite
Level 8

Re: 3 separate conditional statements with 3 actions...1 flow or 3 flows?

Hi @saturation,

 

There are pros and cons for having the conditions run in the same flow or in different ones. Personally I prefer to have flows relating to one type of task combined, however this can lead to things being more difficult to troubleshoot as if one branch fails the whole thing will be marked as failed and if you then want to resubmit that flow run you may end up duplicating data.

 

Depending on your situation and how regularly these flows will run you might also need to consider the benefit of having just 1 flow run vs 3 flows run if you need to be cautious of your tenants flow run limit.

 

If you do wish to have the 3 conditions run independantly within the same flow you can take advantage of parallel branches. This is an option you are offered when adding an action from the "+" button between two tasks:

ParallelBranch.png

 

You can then create independant brances from a specified point:

conditionbranch.png

These will run without interaction from the other branches.

You could then return these to a single branch by adding a new step beneath the parallel tasks:

 

branchjoin.png

This task will then only run after all connected branches have completed.


Let me know if this helps or if there is anything else you would like to know!

View solution in original post

saturation
Level: Powered On

Re: 3 separate conditional statements with 3 actions...1 flow or 3 flows?

Exactly the advice I was looking for - thank you!

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,297)