Is there a way to access a global variables default value using JavaScript?
I thought it would be similar to getValue, but I can’t seem to find the right path.
wwLib.wwVariable.getValue('8a799d83-……-a38c-6622265f38d4')
Is there a way to access a global variables default value using JavaScript?
I thought it would be similar to getValue, but I can’t seem to find the right path.
wwLib.wwVariable.getValue('8a799d83-……-a38c-6622265f38d4')
Hi, why do you want to access the defaultValue ?
I think we don’t have a public API for that yet. But we have an action available in your workflows to reset a variable to his defaultValue.
Hey @Alexis
One reason is related to this post, regarding resetting variables. Resetting all variables from project
Because the Reset variable action doesn’t currently handle an undefined variable, this could be mitigated in the interim by using javascript with .updateVariable and passing in the .defaultValue.
Just trying to resolve a number of instances where my workflows are discontinuing due to un undefined variable in the Reset variable list.
@Alexis Has the situation changed for having access to a public API to set up the default value of a variable ?
I really need that for performance matter, for my use case.
Could you come back to me ?