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

Ankur Bawiskar
Tera Patron

@matheusreis 

even with admin it's unable to save variable?

also see if the variable value is stored in "sc_item_option_mtom" for that RITM

May be some client script or UI policy is clearing that

check this

Value not getting saved on a field in the Variable Editor of a Task record 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

The field is not being changed in the "sc_item_option_mtom" table, and there is also no 'Clear the variable value' field in the Catalog UI Policy Action.

@matheusreis 

how is the catalog task created? how are you linking the variables to it?

even with admin it doesn't save?

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

The task is created via flow, passing all variables from rhythm to sc_task.
Even with admin privileges, it doesn't save.