Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Scheduled Job Update Set Capture Script

This ServiceNow background script addresses a critical deployment challenge by programmatically capturing scheduled jobs in update sets.
By default, ServiceNow scheduled jobs are not automatically captured in update sets, making them difficult to migrate between environments.
This script uses the GlideUpdateManager2 API to force a scheduled job record into the current update set, enabling seamless deployment through standard update set processes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var gr = new GlideRecord('sysauto_script');
gr.get('<sys_id of your scheduled job>');
var gum = new GlideUpdateManager2();
gum.saveRecord(gr);
Loading