Showing results for 
Search instead for 
Did you mean: 

Let us put Initialize Variables into a Scope if the Scope is at the top

I get why you want Initialize actions at the top but PLEASE let me put them in a Scope at the top. Because I cant copy actions Im building a TON of variables to hold blocks of text and dynamic content that I can reuse so I have like 30 Initialize Actions at the top that I cant hide. 😞

Status: Under Review

Thank you for the suggestion.

Advocate I
Advocate I

@FastTrack you nailed it.  Would just add that as in any well-designed programming language, having a scoping construct that allows the user to fully control variable scope is a must.  So in your one action to init/def them all, I would also ask MS to add a scope field because atm all vars have global scope and we all know (or should know!) where that leads.  Of course, in simple flows, it's not an issue.  But let's imagine some huge and insanely complicated flow with lots of parallel branching, where all the way down the flow you make a typo with a var name in a Set Variable action that ends up changing the value of the wrong var that is also used above in another branch and before you know it you're stuck in the debugging session from hell.  


That's why scope exists, so we don't have to mess around with managing var naming schemas on top of everything else we need to do in an already crowded heterogenous environment (ie many moving parts) that flows typically tend to be.

Regular Visitor

I need this so much...

Kudo Commander

this has been Under Review for nearly TWO YEARS...

Regular Visitor

Can this be considered for next release?


Frequent Visitor

This still needs to happen - 3 years since it was suggested. 

I am using parallel branches to make the length shorter, but now I just have them spread across the width instead. Marginally better, but not perfect.