How to update RITM variable upon closure of the task

Joshua Comeau
Kilo Sage

I have a task that upon closure I want to have a script that will update a variable on the RITM.

 

JoshuaComeau_0-1721654193392.png

Current script which is not working:

workflow_stage = '2.0 - Ready for Risk Review';
1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron

If this is a variable added to a Catalog Item, use:

 

current.variables.workflow_stage = "...

 

If you are trying to update the field on the sc_req_item record, omit .variables, and make sure the value you are using in either case is accurate - or use a Set Value activity instead.

View solution in original post

1 REPLY 1

Brad Bowman
Kilo Patron

If this is a variable added to a Catalog Item, use:

 

current.variables.workflow_stage = "...

 

If you are trying to update the field on the sc_req_item record, omit .variables, and make sure the value you are using in either case is accurate - or use a Set Value activity instead.