How can we edit a variable value if a catalog is already requested and currently in approval state

1_DipikaD
Kilo Sage

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

11 REPLIES 11

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.

Chaitanya ILCR
Mega Patron

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

ChaitanyaILCR_1-1748446181443.png

ChaitanyaILCR_2-1748446267958.png

 

 

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

 

ChaitanyaILCR_0-1748446066245.png

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')

ChaitanyaILCR_0-1748446636170.png

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

After doing this have to rerun the workflow or it will take the updated value from now ?

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

 

Ankur Bawiskar
Tera Patron
Tera Patron

@1_DipikaD 

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.

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