Gurpreet07
Mega Sage

Hi Felix,


Try to put some log statements in the code to know the flow. If control is entering in any of the if/else conditions and still its not working then you could try to assign assignment group using sys_id of respective group.



  1.   if (sEmailAddress.indexOf("ithelpdesk@conns.com") != -1) {
  2. gs.log("Email From :"+ithelpdesk@conns.com);
  3.   current.assignment_group.setDisplayValue("IT Helpdesk");         //replace with current.assignment_group = sys_id_of_group
  4.   }
  5. else if(sEmailAddress.indexOf("security@conns.com") != -1){
  6. gs.log("Email From :"+security@conns.com);
  7. current.assignment_group.setDisplayValue("IT Securities");         //replace with current.assignment_group = sys_id_of_group
  8. }