Scheduling report every 2 hours, 5am to 10 pm everyday

NestorG
Kilo Contributor

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!

2 REPLIES 2

HrishabhKumar
Kilo Sage

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:

  1. Navigate to Scheduled Jobs:

    • Go to System Scheduler > Scheduled Jobs in your ServiceNow instance.
  2. Create a New Scheduled Job:

    • Click on New to create a new scheduled job record.
  3. 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.
      • 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.
  4. 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...

    https://www.servicenow.com/community/in-other-news/scheduling-reports-periodically-monthly-weekly-or...

 

Thanks,

Hope this helps.

If my response turns useful please mark it helpful and accept it as solution.

Forgot to mention it’s a 

scheduled email of report