Why Aren't Scheduled Jobs Included in Update Sets?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 06:34 PM
I have a scoped app with a script include that needs to run once a day at 7 a.m.
To do this, I created a simple scheduled job that calls two functions of that script include.
ServiceNow doesn't include this scheduled job in the scoped app's update sets. There isn't a Force to Update Set UI action I can use to put it in an update set manually either.
Does anyone understand the rationale for why ServiceNow doesn't allow scheduled jobs in update sets? Because I can't do that I have to tell clients to create the same scheduled job three times: once in dev, test and prod. I'd prefer to avoid that.
- 6,483 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 07:27 PM
You would have to import and export the scheduled job XML's to the different instances.
Take a look at these options to force push records to update set
https://snprotips.com/blog/2016/9/7/force-include-any-record-into-an-update-set-in-servicenow
https://www.servicenowguru.com/system-definition/manual-update-set-inclusion/
Please mark my response as correct and helpful if it helped solved your question.
-Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 10:17 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 06:28 AM
Thanks for the tip. I wonder what would happen if I moved that single-record update into another update set's XML.
When I used git to publish and install a Studio app, it did include a scheduled job in the update. But git deletes and reinstalls the app every time it is used, wiping out all user data, so it can't be used for revisions to an application that's in current use.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2022 04:59 AM