cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HamidBee
Skilled Sharer
Skilled Sharer

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
SudeepGhatakNZ
Resident Rockstar
Resident Rockstar

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.

 

 

If my suggestion helped you, please give it a Thumbs up and mark it as a Solution so that it can benefit others in the community.

View solution in original post

2 REPLIES 2
SudeepGhatakNZ
Resident Rockstar
Resident Rockstar

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.

 

 

If my suggestion helped you, please give it a Thumbs up and mark it as a Solution so that it can benefit others in the community.

Thank you for the explanation. 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,222)