How can we edit a variable value if a catalog is already requested and currently in approval state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:05 AM
Hi All,
Is it possible to change a variable value after request has been raised and currently in 'requested for approval ' state and a few groups are already approved the request ?
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 09:54 AM
To maintain integrity, the best options would be:
A. cancel the request and have them submit a new corrected request
B. Make a note on the task that customer has submitted incorrectly, and requested this option instead (with reference back to where customer specified for accountability.
Both are valid and don't alter the original data.
Some additional considerations:
1. If the fulfillment is automated and driven based on that variable, then cancelling and submitting new will likely be the best option.
2. If the variable value change has an impact on pricing (e.g. changing hard drive size on a laptop, or similar) then cancelling and submitting new is also likely the best option.
Again, use your best judgement, but people can and do make mistakes, and it's valid to just add a note that says "Submitted in error, customer requested change to X" and then carry on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:33 AM - edited 05-28-2025 08:37 AM
Hi @1_DipikaD ,
there are two table involved
1. sc_item_option_mtom
2. sc_item_option
if you have SNUtils installed open the RITM enable technical names
next to the variable you will get a link click on it it will open the related sc_item_option record
add the value there and update
if you don't have snutils
open the first table (open with .filter it's a big table)
and filter using parent item = Put your RITM
each dependent item and find your variable and update the value
Easy approach if works
open the browser console and set value with g_form.setValue('youVariableName','ValueYouWantToSet')
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:51 AM
After doing this have to rerun the workflow or it will take the updated value from now ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 09:00 AM
Hi @1_DipikaD ,
the upcoming activities in the workflow will take the updated value.
if you want this value in the previous activities too you have to restart the workflow.
or
you can ask the user to submit the form one more time and cancel the existing Request
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:55 AM
is this a business requirement to allow updating the variable by agents?
Why are you bringing background script for this?
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