Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to set a catalog variable value via the workflow?

nortonxnorris
Giga Expert

I have created a 'Yes/No' type variable. I would like to set the value to 'Yes' at a particular stage in the workflow using a 'Run Script'.

I have tried current.variable_name = 'Yes' which does not work. Any suggestions?

1 ACCEPTED SOLUTION

sorry...there was a mistake



current.variables.variable_name ='yes' ; // when its not part of variable set



current.variable_pool.variable_name = 'yes'; //when part of variable set


-Anurag

View solution in original post

5 REPLIES 5

Anurag Tripathi
Mega Patron

current.variable.variable_name = 'yes';


-Anurag

Unfortunately, that did not work:


current.variable.variable_name = 'yes';


Tried current.variable.variable_name = 'Yes'; as well.




To be more specific, the variable i am using is part of a variable set.


sorry...there was a mistake



current.variables.variable_name ='yes' ; // when its not part of variable set



current.variable_pool.variable_name = 'yes'; //when part of variable set


-Anurag

Thank you sir!!!