Global Variable

Post your questions and help other users.

Moderator: Martin

Post Reply
Ankit
Posts: 143
Joined: 11 Nov 2013 17:27

Global Variable

Post by Ankit » 30 Jan 2014 04:19

Hi,
Sometimes my some of the flows create unnecessary global variables that are of no use to me and infact it hangs my flows.

Is there is a way to delete unnecessary global variables itself.
It should automatically determine which variables are of use and which are not and delete them ..

Please help!!

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Global Variable

Post by kintrupf » 30 Jan 2014 11:53

Ankit wrote:Hi,
Sometimes my some of the flows create unnecessary global variables that are of no use to me and infact it hangs my flows.

Is there is a way to delete unnecessary global variables itself.
It should automatically determine which variables are of use and which are not and delete them ..

Please help!!
There is no way to determine if a global variable is still in use or not.
But you can add a script action to your flow to remove any unneeded global variables. Just add the following script:

Code: Select all

removeVariable('<global_xxx_1');
removeVariable('<global_xxx'_2);
...
Of course you need to replace "global_xxx_1" with the real name ;-).
Be sure to include the name of the variable in quotes.

Post Reply