- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 06:22 AM - edited 12-21-2022 06:25 AM
Hello Folks,
I am trying to create Change requests from the Script - Background. But am unable to create Emergency type change using the below script. Could you please correct me what am missing?
var chg = new GlideRecord('change_request');
chg.initialize();
chg.type = 'emergency';
chg.short_description = "test change request";
chg.insert();
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 06:29 AM
Hi,
Please find the below script to create an emergency change:
Emergency:
var chg = new GlideRecord('change_request');
chg.initialize();
chg.type = 'emergency'; // replace if you want to create another tupe of change;
chg.short_description = "test"; // replace for any other short desc;
chg.chg_model='62d10fa1c303101035ae3f52c1d3aec1';
chg.insert();
Please mark the answer correct/helpful accordingly::.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2022 06:29 AM
Hi,
Please find the below script to create an emergency change:
Emergency:
var chg = new GlideRecord('change_request');
chg.initialize();
chg.type = 'emergency'; // replace if you want to create another tupe of change;
chg.short_description = "test"; // replace for any other short desc;
chg.chg_model='62d10fa1c303101035ae3f52c1d3aec1';
chg.insert();
Please mark the answer correct/helpful accordingly::.