Exclude table from UpdateSet

Jan 1, 2020 1 min read
ServiceNow

All customizations made in tables, that extending sys_metadata are tracked to current UpdateSet. But sometimes we need to exclude some of them.

Goal

You want some customizing not to be tracked to UpdateSet. For example, Catalog Items.

Solution

Note
Following solution is definitely not officially supported by ServiceNow, so you should really know what you are doing.

Dictionary attribute update_synch of a table should be set to false. Update via UI is impossible due to error message “The attribute ‘update_synch’ cannot be removed from a system Dictionary Entry record unless maint”. Ok, so we should update the dictionary via Scripts - Backgroud module. Find the dictionary entry for the table, copy the sys_id and attributes. Than replace update_synch=true with update_synch=false. Use following code snippet:

var gr = new GlideRecord('sys_dictionary');
gr.get('4baf38f765822300aadb05e0fb3edf2e');
gr.attributes = "update_synch=false,verify_parent_scope=false";
gr.setWorkflow(false);
gr.update();

That’s it. The table has been excluded from tracking. But keep in mind - it’s a dirty hack.