cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LABORSAL
Advocate II
Advocate II

Concurrency issues in a flow

Hello,

 

I'm trying to collect data from an adaptive card to update a sharepoint list.

 

I had already managed to get the process to work and when I tried to do a test with multiple mails I came across a problem where the variables set in one of the loops are going to another loop creating issues (in who receives the card, which answers are stored etc.)

LABORSAL_0-1619463094858.png

Is there any way to build variables inside an apply to each where it has an ID of the run or similar to maintain consistency in each loop even if it's running at the same time?

 

1 ACCEPTED SOLUTION

Accepted Solutions
LABORSAL
Advocate II
Advocate II

So it turns out that I did something wrong initially, the solution is to change the variables into composes and that removes the cross between parallel rows.

View solution in original post

3 REPLIES 3
alrez
Microsoft
Microsoft

Hi,

 

You can initialize a variable at the beginning of the flow and then set it within the Apply to each. That way you can still "build" variables within apply to each's.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your reply Alex!

 

Indeed you can set it inside the apply to each, however if you do it in a concurrent "apply to each" you merge the lines and end up with variable and incorrect results (for exmple, the green stream "set variable" can overwrite the one from the yellow stream, which results in mixed data)

LABORSAL
Advocate II
Advocate II

So it turns out that I did something wrong initially, the solution is to change the variables into composes and that removes the cross between parallel rows.

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (1,832)