Applying Incident Template to Inbound Email Action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 11:17 AM
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?
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 11:58 AM
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');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 12:02 PM
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.