Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 02:10 AM
Hi Marcus,
Please try the below code.
var templateSysId = "8d795606376897c09d3b861754990ed2"; // sysid of the template
var incidentRecord = new GlideRecord('incident');
incidentRecord.initialize();
GlideTemplate.get(templateSysId).apply(incidentRecord);
incidentRecord.insert();
Regards,
Harish Murikinati.