The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How can I save the value of the task variable in the ritm?

screscenzi
Tera Contributor

Hi all,
I have a workflow, inside which I've inserted the 'Catalog Task' box. The variables for my catalog item are contained in the task. In the ritm, I enter the task and find the variable, enter a value, and save it. I return to the ritm and save it as well. If I return to the task and refresh the page, the value of the variable in the task returns to -None-. If I refresh the ritm, instead of saving it, the variable value remains. How can I save the value of the task variable in the ritm when it is saved?

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@screscenzi 

the variable value is same across RITM and SC Task.

Example: if variable ABC is updated on RITM and if you refresh SC Task then the variable will show updated value and same goes vice-versa.

You can't have same variable to show different values on RITM and SC Task.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks for the reply.
In ritm, I hid the variable that's only visible in sc_task. Once the task is saved, it's as if the value in ritm is still -none- because it hasn't been updated. So, I think the value in ritm overwrites the task value if I right-click and save. Is it possible to avoid this?

@screscenzi 

nope, the value you save while saving task should reflect on RITM as well.

Try showing that variable on RITM form

Also ensure no client script or UI policy is running on RITM which might be clearing the variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

If I view it with SN Utils, the value that changes on the variable in the task form after saving is not reflected in the variable in the ritm form. In fact, only if I refresh the ritm does the value update, but if I save the ritm the value is deleted. I would like to avoid this behavior, in case the customer wants to save instead of simply updating.