- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 12:13 AM
Hi Team,
How to create a new incident from background script.
Thanks
Prakash
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 12:18 AM
Hi Prakash,
Please write this code in the background script
var gr = new GlideRecord('incident'); gr.initialize(); gr.description = 'Testing'; gr.insert();
I hope it's helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 12:18 AM
Hi Prakash,
Please write this code in the background script
var gr = new GlideRecord('incident'); gr.initialize(); gr.description = 'Testing'; gr.insert();
I hope it's helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 12:20 AM
Thanks, it working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018 12:20 AM
insertINC();
function insertINC()
{
var bg = new GlideRecord('incident');
bg.initialize();
bg.fieldname="your value";//example bg.short_description = "test";
bg.insert();
}
Harish