Unable to Create Incident Using Scheduled Job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 07:55 PM
Hi,
How can I create an incident weekly once using a scheduled job? I have tried, but I'm unable to create the incident from the scheduled job. please help me?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 08:00 PM
Hi @Hari S1
you can try Flow designer for your requirement as scheduled job requires scripting.
create a new Flow with trigger type as Schedule and use predefined Flow Action “Create record” to create incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 10:11 PM
Hi @Hari S1 ,
Which error did you encounter? Can you share a screenshot for better understanding?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 08:53 PM
share what script did you try and what's the error during creation?
what debugging did you perform?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 10:05 PM
Hi @Ankur Bawiskar ,
Below is the script I am using in the scheduled job. When I click the Execute Now button, the incident is not created, but when I use the same script in the background script, the incident is created successfully.
Scheduled Job