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 / What does "You can onl...
Power Automate
Unanswered

What does "You can only declare variables at the global level, not within scopes, conditions, and loops." mean?

(0) ShareShare
ReportReport
Posted on by 932 Super User 2024 Season 1

What does "You can only declare variables at the global level, not within scopes, conditions, and loops." mean?.

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    That means that variables need to be Initiatlised at the start of your flow. You cannot use Intiatlize variable action inside scopes, conditions or loops. However, you can use the Set variable inside loops etc.

     

     

  • HamidBee Profile Picture
    932 Super User 2024 Season 1 on at

    Thank you for the explanation. 

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard