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 Automate / ISsues with intializin...
Power Automate
Answered

ISsues with intializing variables in flow

(0) ShareShare
ReportReport
Posted on by 11
Hello gurus, recently introduced the condition (in pink) to the flow and now the variables cant be initialized.  The flow from green works exactly as expected. Is there a work around to this or another way of achieving this? 
 
The original functional flow See pic 4 below,  triggers when a user uploads a file into a sharepoint library. Then the file is uploaded to adobe ad an agreement adobe id is generated, it keeps checking until the status of the agreement is "signed" and then proceeds to pdf the document and saves it to another library. 
 I wanted the user to control when the document is sent to adobe so i introduced a new choice column . The value TO SIGN kicks off the trigger and the rest of the flow. 
 
It seems i cannot initialize the variable inside the condition and im stumped as to where that variable ccan live. If i have it out side of the conditions it will not 
 
 
 
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    AdvaanGuy Profile Picture
    11 on at
    Found my issue, i needed to initilize the variable before the condition, Variables can be set in the loops. Noob oversight. Please delete ,thanks
  • Verified answer
    creativeopinion Profile Picture
    10,508 Moderator on at
    @AdvaanGuy Variables can only be initialized in the root of the flow. They can't be nested inside other actions. You can nest the Set Variable action but not the Initialize Variable action.
     
    You might be interested in this YT Tutorial:

    In this Power Automate tutorial, I explore 5 frequently asked questions that pop up when troubleshooting a flow. If you’d like to to level up your Power Automate flow skills and learn how to troubleshoot your Power Automate flow—this tutorial is for you!

    IN THIS VIDEO:
    ✓ How to troubleshoot a false Condition action result
    ✓ How to get dynamic content when it isn’t selectable from the list of dynamic content
    ✓ How to troubleshoot an Apply to Each action that isn’t looping through
    ✓ How to troubleshoot a skipped Apply to Each action
    ✓ How to troubleshoot a Filter Query
    ✓ How to use a SharePoint yes/no column in a Filter Query
    ✓ How to use Compose actions to troubleshoot a Power Automate flow
    ✓ How to troubleshoot multiple emails being sent
    ✓ How to troubleshoot multiple Teams messages being sent
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard