Scheduled jobs

Scheduled jobs are a way of generating a report or record and automatically running a script. Creating a report or record is a configuration and does not require scripting. What we are interested in for scheduled jobs is the ability to automatically run a script.

A scheduled job is a helpful way to run a script at a time of your choosing. This can be an overnight job or a script that can run frequently, say, every hour. In my experience, running script out of hours is one of the main benefits and uses of a scheduled job. Common uses are preparing data for users first thing in the morning, or to remove old data.

When creating a scheduled job, we set the frequency of the scheduled job by using the run field. The different time ...

Get Mastering ServiceNow Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.