How can I save the value of the task variable in the ritm?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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.