Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 12:38 AM
I eventually found a solution, by selecting the conditional box and using this script
var change = new GlideRecord('change_request');
change.initialize();
change.type = 'standard';
change.requested_by = "System Administrator";
change.applyTemplate('INSERT TEMPLATE NAME');
change.insert();
hope it helps. Specifying the change type is crucial part, we also added in a requested by as it was leaving it blank