Disable Track in update sets


If you have ever been in a situation where you or someone else has clicked on the "Track in update sets" related link, then you seem to be stuck with it, and you keep tracking any updates to these records on the table.

In order to disable it, you need to run the below script as a Background Script. Of course you need to replace the TABLE_SYS_ID with your actual sys_id of the table you want to change.

doNotTrackInUpdateSets();
function doNotTrackInUpdateSets() {
	var gr = new GlideRecord('sys_db_object');
	gr.addQuery('sys_id', 'TABLE_SYS_ID'); // Replace TABLE_SYS_ID with your tables sys_id
	gr.query();
	while(gr.next()) {
		gr.super_class = '';
		gr.setWorkflow(false);
		gr.update();
	}
}


Comments