Variables in sc_task do not save changes.

matheusreis
Tera Contributor

Hi everyone,

I’m having an issue when trying to update catalog variables directly from an SC Task.

In my case, the variables are hidden on the RITM and also on the catalog item form. They are only displayed on the SC Task, so the fulfillment team can fill them in or update them.

The problem is that when I change any variable on the SC Task and click Save, the page refreshes, but the variable values are not saved. After the refresh, the fields go back to their previous values.

However, if I update the same variables directly from the RITM, the values are saved correctly.

 

I have the admin role.

8 REPLIES 8

Tanushree Maiti
Kilo Patron

Hi @matheusreis 

 

Option1: setting variable  to "Global" 

 

  • Navigate to Service Catalog > Catalog Definitions > Maintain Items.
  • Open the specific Catalog Item associated with the task.
  • Scroll down to the Variables related list.
  • Configure the list layout to add the Global column (if it's not visible).
  • Set the Global checkbox to true for all variables you want to edit on the sc_task

Note: If these variables are in a Variable Set, open the Variable Set and set them to Global there.

 

Option 2: If setting them to "Global" does not solve it,

Ensure the fulfillment team has the appropriate role ( Write role)

 

Option3 : Just check you do not have any catalog client script (onsubmit)/client script/rule by which accidentally you are clearing those variable value  on sc_task.

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

I installed the global error on the variables and nothing changed. I also don't have any script or file that does the cleanup.

AlpUtkuM
Mega Sage

Can you try increasing the order of the UI Policies?

 

Instead of 100, can you give order such as 5000 or 10000?

I changed it, but it didn't work either.