Scheduling report every 2 hours, 5am to 10 pm everyday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 07:05 AM
I want to schedule a report which will run every after two hours on daily basis, 5am-10pm. How to achieve this?
Please suggest.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 11:50 AM - edited ‎07-02-2024 11:53 AM
Hi @NestorG ,
To schedule a report to run every two hours between 5am and 10pm daily in ServiceNow, you can use Scheduled Jobs. Here’s how you can achieve this:
Navigate to Scheduled Jobs:
- Go to System Scheduler > Scheduled Jobs in your ServiceNow instance.
Create a New Scheduled Job:
- Click on New to create a new scheduled job record.
Configure the Scheduled Job:
- Fill out the fields as follows:
- Name: Provide a descriptive name for your scheduled job.
- Active: Checked (to enable the scheduled job).
- Schedule: Set the schedule using cron syntax for every two hours between 5am and 10pm.
- Cron expression for every two hours: 0 */2 5-22 * * *
- Explanation:
- 0: At the 0th minute of the hour.
- */2: Every 2 hours.
- 5-22: Between the 5th and 22nd hour (5am to 10pm).
- * * *: Every day of the month, every month, and every day of the week.
- Explanation:
- Cron expression for every two hours: 0 */2 5-22 * * *
- Script: Specify the script or the report generation task that you want to schedule.
- Start Date: Set the date when you want the schedule to start.
- End Date: Optionally, set an end date if you want the schedule to stop running after a certain date.
- Time Zone: Select the appropriate time zone for your schedule.
- Fill out the fields as follows:
Save and Activate:
- Click on Submit to save the scheduled job.
You can also take a look at this question thread : https://www.servicenow.com/community/developer-forum/how-to-set-up-periodic-schedule-jobs/m-p/165651...
Thanks,
Hope this helps.
If my response turns useful please mark it helpful and accept it as solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 08:39 PM
Forgot to mention it’s a
scheduled email of report