cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Concurrency issue

I have a flow that goes as below. What I noticed is that some variables from Sharepoint 2 is being used in Sharepoint 1 and so on, how can I avoid this situation?

 

shravanvijay_0-1606840523495.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@shravanvijay 

I assume that you are illustrating parallel branches in you screen shot.  The short answer is that you can't avoid the situation you have described - the same variable is being used in different branches.  Your alternatives are to create additional variables so that they are not used in more than one branch or you can have your actions run sequentially rather than in parallel.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

5 REPLIES 5
Super User III
Super User III

@shravanvijay 

I assume that you are illustrating parallel branches in you screen shot.  The short answer is that you can't avoid the situation you have described - the same variable is being used in different branches.  Your alternatives are to create additional variables so that they are not used in more than one branch or you can have your actions run sequentially rather than in parallel.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

New Member

That was the solution I was thinking of, but the problem is there are 15 variables and 15 parallel branches. so, was wondering if there is an alternative to replicating it all across

Super User III
Super User III

@shravanvijay 

If each of your branches does something very similar to each of the others, you might consider creating a child Flow.  In the child Flow, you pass in parameters a appropriate.  Then, you can call the child Flow inside of a loop and turn on concurrency control for the loop so that the loops run in parallel.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer yes, they do the exact same thing inside. how do I build a child flow and pass parameters? I'm new to power automate, could you show me an example maybe?

@shravanvijay 

Here is a link to the documentation on child Flows

Here is a link to a video that will get you started

Give it a try!

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (7,016)