Inbound Email Action to Create Incident and Route to Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 07:04 AM
Good morning Community,
I need to create an inbound email action that creates and incident, and then routes it to the appropriate assignment group. I have set up the field actions(shown below), and the inbound action is working-sending all mail to our generic Service Desk group. I need to customize this action to route incidents to specific assignment groups based on the email address of the sender. I need some assistance creating a script to accomplish this task.
Thanks!
Heather
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 07:08 AM
In the script you can have something like :
if(email.origemail == '<<email address>>')
{
current.assignment_group = '<<sys_id of the assignment group>>';
}
curr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 07:53 AM
Hi Heather,
If you create a new table mapping email addresses and the assignment groups associated with them then you can add some script to your 'create incident' inbound email action to define which assignment group is added to the Incident when it is created.
A function like this might work:
function getAssignmentGroup() {
var gr = new GlideRecord("your_new_table_name");
gr.addQuery("u_email_address", email.origemail);
gr.query();
if (gr.next()) {
return gr.u_assignment_group;
}
}
then you can just add the below elsewhere in you create incident action
current.assignment_group = getAssignmentGroup()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 10:54 AM
How to create a new table mapping email addresses and the assignment groups associated with them Can you please help