cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leanns
Helper II
Helper II

Variable in Parallel Branches

Hello,

 

I'm not sure if this is possible, if not I can work around it. But if it is, I would like some help. So I'm retrieving a "list" of names from a MS Form that the user fills out and from there I grab their emails from a Sharepoint List so that it's now an array of emails. I have this.  This is a portion of the flow, its a part of a much larger flow. This next part is where it becomes tricky. Once i have this array of emails, I want to send an approval to each of them with a email reminder when they don't do it within a certain time frame. I have this all set up in an Apply to each set to parallelism =5 (max of 5 emails). What I'm struggling with is how to get the variable that I have controlling the email reminder to loop if one person responds to the approval but someone else doesn't. At the moment, what happens is that once someone approves/rejects their approval but the other doesn't, the email reminders stop because the variable changes for all "branches". It runs and it technically doesn't fail but it doesn't do what I wanted. Any thoughts?

 

Here's the portion of the flow I need help with.

plant_manager_parallelism.PNG

Thanks,

leanns

2 REPLIES 2
v-yuazh-msft
Community Support
Community Support

Hi @leanns,

 

Please take a try to add a "Set variable" action under the "Do until" to set the variable value to false.

Capture.PNG

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

Hello @v-yuazh-msft,

 

Thank you for the solution. So I believe it worked, but I'm not sure since now my Apply to Each won't run in parallel even though I have it set to run in parallel anymore. Since it's not doing what I'd like, I'm not sure if it worked or not. Do you have an idea as to why the Apply to Each stopped running in parallel even though it's set to? I tried turning it off and back on and it still didn't work.

 

 

Thanks,

leanns

 

 

EDIT: This solution doesn't work. It still won't send the email once the first approval is accepted/rejected. It sends the reminder email once for both approvals. I need it to send for each approval not one for all.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (2,549)