ServiceNow Learning#22 : Shortcut to capture Scheduled JOB in update set or Application Scoped Updat

Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

If you want to capture the scheduled job or anything that doesn't capture in update. There are various option to do this. One shortcut if your instance doesn't have "Add to Update Set" UI action available.

 

Create the scheduled job and run this below script once in background script then it will capture it in your current selected update set.

 

var rec = new GlideRecord('tablename');
rec.get('sys_id');
//Push the record into the current update set  
var um = new GlideUpdateManager2();
um.saveRecord(rec);

 

Manually Add a Record to an Update Set - ServiceNow Guru

 

Adding Record Attachments to ServiceNow Update Sets | John Andersen (john-james-andersen.com)

Hope this helps you.

 

Regards,

Shamma

 

 

Regards,Shamma Negi
0 REPLIES 0