Question on Scheduled Job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 10:57 PM
Hello there,
I have a Scheduled job requirement, in that i need to create a new Incident Using Scheduled Jobs and that incident should contain( Following field values should be capture in Incident record using Scheduled job)
Short Description
Description
Assignment Group "ABC"
Category set To "Network"
Priority Set To "Moderate"
Thanks,
Priyadarshini
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 11:00 PM
Hi,
Have you looked at Flow designer?
This could easily be done with a scheduled Flow instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2022 11:08 PM
Hi
You can use below code for that :-
var gr = new GlideRecord('incident');
gr.initialize();
gr.description ='Testing';
gr.short_description='Test1';
gr.assignment_group='477a05d153013010b846ddeeff7b1225'; //
gr.impact='2';
gr.urgency='2';
gr.insert();
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Gunjan Kiratkar
Consultant - ServiceNow, Cloudaction
Rising Star 2022