web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / For Each Loops, settin...
Power Automate
Unanswered

For Each Loops, setting variables and concurrency

(0) ShareShare
ReportReport
Posted on by 289

Hello Guys,

I have a flow that has the following steps.

1. Initialize Variable abc

2. Initialize Variable xyz

3. GetItems (from a sharepoint list)

4. For Each Loop

    a. Set Variables abc and xyz

    b. Run child approval flow

 

I understand that setting variables within a loop means that you can't run with concurrency > 1, I read that you should use compose instead of variables. Can someone explain this to me please?

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @JimJim ,

    variables are shared within the whole flow, if you run multiple parallel branches using the same variable they'll update it at the same time, it'll be a mess. 'Compose' action is defined in the specific branch of the flow, if you run the flow in parallel, each parallel branch will use its own 'Compose' action and its output.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard