Variable Sync from task to ritm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Lets say, I have a variable called "TEST 1" in RITM and hidden but the same variable is also present in task and visible on the form.
Now I am trying to update the TEST 1 variable with dropdown as "yes" and saved the form. I am going back to the request item with out refreshing I am just clicking on save button directly
Later, I am refreshing my task record and I can see the changes for variable Test 1 is getting reverted, why the variable sync from task to ritm is not happening if the variables are hidden in ritm, I also observed this for all the catalog items
How can we fix the issue, can any one also help me how the variables are getting synced from ritm to task?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Variables are owned by RITM.
Hidden variables on RITM break the sync, because the save overwrites task values with old ones.
To fix → either keep them visible on RITM, or add logic (BR/Flow) to force updates from task → RITM.
Shashank Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi Shashank,
I am trying with before update business rule,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
you need to reload the RITM form after you saved the task with that variable, then only the value will be refreshed on RITM form.
But if you save the RITM the variable value set from task form will be overriden because on RITM form you haven't refreshed yet and it's still None/Empty.
As per your comment this variable is not shown on RITM form then how are you hiding it?
Any UI policy? if yes then is that UI policy clearing the value when it runs with reverse condition?
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
4 weeks ago
I am using ui policy to hide few fields setting visibility false, how does this will impact?