Email - Mulitple inbound Aliases

gbernie
Kilo Expert

Hi All,

We have implemented SN recently and by default all users have a single email address. eg username@example.com. Every morning we get an upload of user data via a MID server. All of this functions correctly however it has only recently come to our attention that a large number of our users are actually using other company alias. These alias when they are emailed to the instance will create a Guest incident.

What I need help with is how would I get, if I had a list of email alias @hotmail.com, @gmail.com etc, the inbound action to check that list and then raise the Incident as the user in our system

Any assistance would be grateful.

Thanks in advance.

Gareth

1 ACCEPTED SOLUTION

david_legrand
Kilo Sage

1) Table "email alias" (u_email_alias)
a) 2 fields minimum (u_email, u_user sys_id) + active, domain... (optional)

2) inbound action
a) gliderecord (u_email_alias)
b) query (u_email == email.from)
c) current.caller_id = u_email.u_user

Best regards,


View solution in original post

7 REPLIES 7

Hi Julian,


We have this near the top of our inbound action



var util = new EmailAliasUtil(email.origemail);


  var userID =   util.getUserID();


  if(userID != "") {


  //Impersonate user found


  gs.getSession().impersonate(userID);


  current.caller_id = userID;


  current.opened_by = userID;


  }



Regards.


Gareth


Hi Gareth


Thanks for that, I shall look and investigate further


gbernie
Kilo Expert

Thanks David,
The logic is sound and has been implemented.