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.

Set value variable task in a workflow

ggggasgasgasgas
Kilo Contributor

Hi all.

 

I have a task in a workflow with a variable. If you select "NO" in this variable, you go to another task and when you close this task , you back to the other task and in this moment i want to restart the value of this variable but i dont know how.

find_real_file.png

 

The cuestion is, how can I set the value of a catalog task variable?

 

Thanks

1 ACCEPTED SOLUTION

Sebastian R_
Kilo Sage

Because the variables in the catalog task are shared from the request item, you can simply change the variable on the request item.

Therefore you need a Run Script with something similiar to:

// current is the GlideRecord referencing the Requested Item
current.variables.my_variable = 'new value';
current.update();

View solution in original post

5 REPLIES 5

Bruno Moreira
Tera Expert

try this 

 

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