create a incidents automatically on a specific date

DavidPrice
Tera Contributor

I would like to create a schedule that create a incident on a specific date.

 

from example 

 

08/07/2025

15/07/2025

08/08/2025

etc

 

I have created a template to create the incident.

I can get it working on the week/day etc. 

 

but can not see a why that I can type my own date's in for it to run 

11 REPLIES 11

Sandeep Rajput
Tera Patron
Tera Patron

@DavidPrice Did you set the trigger type to Once?

 

Screenshot 2025-07-07 at 8.04.03 PM.png

Voona Rohila
Kilo Patron
Kilo Patron

Hi @DavidPrice 

 

you need to run the schedule job daily and in the advanced conditions script, you should check if todays day is 8th or 15th.

 

Use getDayOfMonthLocalTime() method to get todays day.

 

check below link for syntax and example.

 

https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/app-store/dev_portal/API_referenc...


 

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Shubham_Jain
Mega Sage

@DavidPrice Did you check below Run field? 

 

Shubham_Jain_0-1751899641212.png

 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


DavidPrice
Tera Contributor

If I set that it will only run at that time, 

not look at a list of date's to run on 

 

var specificDates = [
  "2025-07-01",
  "2025-07-03",
  "2025-07-04",
  "2025-07-07",
  "2025-07-21"
];