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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Are Scope variables re...
Power Apps
Answered

Are Scope variables really "In Scope"

(0) ShareShare
ReportReport
Posted on by 168

I initialize a variable before I break into a number of parallel processes in my flow.
Each process is in a Scope.
My question is:
If I set the variable in each of my parallel scopes, do they overwrite one another, or do they stay different while in each Scope?

This hasn't caused an error yet, as things happen pretty quick and I haven't had a collision, though, in theory, they should run at the same time if the approval timeouts are set to the same value.
I'm just asking if anyone knows, so I have to allow for it (i.e initialise seperate variables for each parallel process)

e.g.:

AngusWalker_0-1693942115494.png

 

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hey @AngusWalker,

     

    Scope actions are ways to organize your flow actions or used when creating custom errorlogging within your flows.

     

    A scope action however will not affect the variable action within it - Power Automate variables are global throughout your flow. Depending on which branch runs faster your variable may end up having a different value at the end (read: overwritten). A workaround for 'context/scope variable' functionality is to use the Compose action, which will be unique for each branch - or for each iteration when using concurrent apply to each actions.

     

    Since this is mainly a Power Automate topic, you may find the best / quickest answer on the dedicated Power Automate forum. (This topic is currently posted in the Power Apps forum)

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • AngusWalker Profile Picture
    168 on at

    That's what I thought.
    Just a bad choice of wording by Microsoft developers for when developers are likely to be building apps/flows.
    Should have called it collections, but they already used that for records 🤣

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard