Schedule a job
Quick answer
Scheduled jobs run server-side scripts on a repeating schedule, ideal for cleanup, reminders and batch updates.
Key takeaways
- Steps
- Batch safely
Scheduled jobs run server-side scripts on a repeating schedule, ideal for cleanup, reminders and batch updates.
Steps
- Open System Definition → Scheduled Jobs and click New, then Automatically run a script.
- Set the run frequency (daily, weekly, periodically).
- Write the script, keep it batched with
setLimit(). - Save and use Execute Now to test.
Batch safely
Never hold a long transaction. Process a limited set per run and log progress.
Want to learn this properly?
Our live, instructor-led ServiceNow Training covers this hands-on, with real projects and a certification path.
Check your understanding
What keeps a scheduled job from locking tables?
- A. Batching with setLimit()
- B. Running it hourly
- C. Adding a UI policy
Show answer
A. Batching with setLimit()
Process limited sets per run to avoid long transactions.
How do you test a scheduled job immediately?
- A. Execute Now
- B. Impersonate
- C. Reload the form
Show answer
A. Execute Now
Execute Now runs it on demand.
Frequently asked questions
What does the term Schedule a job refer to in ServiceNow?
Scheduled jobs run server-side scripts on a repeating schedule, ideal for cleanup, reminders and batch updates.
What is worth remembering about Schedule a job in practice?
Open System Definition → Scheduled Jobs and click New, then Automatically run a script. Set the run frequency (daily, weekly, periodically). Save and use Execute Now to test.