- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 06:59 AM
For example:-
if sender is abel tuter@service now.com, create two incident tickets with contents of the email and assign to two different assignment groups.
create incident ticket to
1. Technical group with short description as "software issue" and
2. create another incident ticket for cmdb group with short description as "windows server".
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 12:11 PM
You can also try this code to achieve your requirement, It's easy to understand the logic and Tested by me:-
create Inbound Email Action
In Action tab copy and paste below code and change sys id as per your business requirement.
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
var group = ["019ad92ec7230010393d265c95c260dd","0a52d3dcd7011200f2d224837e6103f2"]; // Instead of passing sys_id in code try to create system properties and call it in array name is group its good pratice and recommended by servicenow.
var short_description = ["software issue","windows server"];
var j = 0;
for(var i = 0 ; i<= group.length-1;i++){
var gr = new GlideRecord("incident");
gr.intialize();
gr.assignment_group = group[i];
gr.short_description = short_description[j];
gr.description = email.body_text;
gr.insert();
j=j+1;
}
})(current, event, email, logger, classifier);
Regards,
Imran Ahmad
Please send your feedback
Please Mark helpful below:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 07:09 AM
Hi,
You have OOB Business rule to create a single incident. As per your requirement, you should write the business rule and validate as per your scenario and create another incident.
Please mark as correct answer if it helped
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 07:14 AM
if sender is abel tuter@service now.com
By using inbound email actions can we create two incidents at a time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 08:39 AM
By using inbound email actions can we create incident tickets.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2022 09:22 AM
Yes you can do. You should add this condition in Script using if statement else you can add this email address in condition field.
Please mark as correct answer if it helped
Regards,
Suresh
Suresh.