Harish Murikina
Tera Guru

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.