How to create multiple incidents from one inbound email

Sharon24
Tera Contributor

Hi all,

I'm required to create multiple tickets assigned to different groups from a single inbound email, how would I do that? Thank you

 

Regards,

Sharon

7 REPLIES 7

Sharon, did you get a solution for this?

This didnt work for as well, i tried creating two inc and it only created the second one

Mahendra RC
Mega Sage

Hello @Sharon24 

Please check with below script:

createIncidentRecord("pass sys_id of System group");
createIncidentRecord("pass sys_id of Tech group");
createIncidentRecord("pass sys_id of Applications group");

function createIncidentRecord (assignmentGroup) {
var incidentRecordGR = new GlideRecord("incident");
incidentRecordGR.initalize();
incidentRecordGR.caller_id = gs.getUserID();
incidentRecordGR.short_description = email.subject;
incidentRecordGR.assigned_group = 
incidentRecordGR.insert();
}