cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize Multiple Variables in the same Action

It would be really convenient to be able to initialize multiple variables inside of the same action.  Especially since the action must occur at the top level.  This would help clean things up, plus make it easier to locate where the variables are actually initialized.

 

So for example, I can say "Initialize Variable"

Then inside the action I add a String named "TestString"

 

Then maybe I have a little link for "add another variable"

So I add an Integer named "Counter"

 

Then I add an Array named "TestArray" and so on.

Status: New
Comments
Level: Powered On

Either this or the option to create global variables via a settings button similar to Nintex.

Level: Powered On

Yes please! My design is very slow to load due to all the variables I am using, pleae allow to initialize the variables in 1 state. It makes it that much easier, or allow them to be created in a scope

Level: Powered On

I would also like to do this in a single action, but if someone is looking for a workaround... Instead of selecting "Add an Action" after clicking the plus sign, select "Add a parallel branch" then add "Initialize variable".

IMO There's hope that adding multiple variables in this single action is on it's way. If you click on the elipsis (...) on the "Initialize variable" action and select "Peek code" there is an array called "variables". I'd like to assume that there is intention to add multiple variables, but the funtion has yet to make it to the front-end of Flow's UX. This is totally a guess btw. Here's hoping!

Level: Powered On

Yes please!

I was trying to do something like setting the variables inside a do until loop. Something like do until count = 6 for 6 variables. But i cannot get the current iteration index. 

 

This would really help clean up the flow.

I put my vote into this feature.

 

Please make it happen flow team! Smiley Very Happy

Thank you very much.

Level 8

Any mature workflow solution allows you to initialize multiple variables at the start of a flow in a single statement.  To have to init each variable separately is ridiculous!  Never mind finding workarounds, just release a 'Initialize multiple variables' action.

 

 

InitMultiple.PNG