- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 04:37 AM
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.
The cuestion is, how can I set the value of a catalog task variable?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2020 04:45 AM
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();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 06:55 AM
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()