Applying Incident Template to Inbound Email Action

Cory Hitchings
Giga Guru

Hi everyone, 

We have an Inbound Email Action setup to create an Incident when a specific email address sends a request to our Service Desk.  I am wondering how I can apply an Incident Template to this Inbound Action.  

Ultimately, I'd like an Incident created and assigned to a specific group each time this email makes it's way to the Service Desk.  Any ideas how to achieve this? 

2 REPLIES 2

Daniel Billing
Giga Guru

Not tried it, but you should be able to use the applyTemplate function

create your template and then call in the action script: current.applyTemplate('mytemplate');

SanjivMeher
Kilo Patron
Kilo Patron

You can do that using below code

 

//Get the template
var t = new GlideTemplate.get('template sysid');
t.apply(current);


Please mark this response as correct or helpful if it assisted you with your question.