Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2015 03:52 AM
Try this with only one inbound action . Code something like below
- // Define Caller Details
- var callerID = gs.getUser().getRecord();
- var sEmailAddress = email.origemail.toLowerCase();
- if (sEmailAddress.indexOf("ithelpdesk@conns.com") != -1) {
- current.assignment_group.setDisplayValue("IT Helpdesk");
- }
- else if(sEmailAddress.indexOf("security@conns.com") != -1){
- current.assignment_group.setDisplayValue("IT Securities");
- }
- current.caller_id = callerID.getValue('sys_id');
- current.location = callerID.getValue('location');
- current.u_phone_number = callerID.getValue('phone');
- current.contact_type = 'email';
- // Define Incident Details
- current.status = 1;
- current.short_description = email.subject;
- current.description = email.body_text;
- current.insert();