Capture external email address on inbound emails to event management

StephenM
Kilo Guru

I am trying to build an inbound action that will generate an Event.  I am trying to capture the senders email address to put into the event.  These senders will be external to our company, they won't have SN accounts. I can't seem to get any field from the email to pass this information. 

 

current.source = 'email';
current.event_class = 'ProofPoint email';
current.type = 'Secure Message Password Reset';
current.message_key = email.uid;
current.description = email.body_text;
current.resource = email.user;
current.severity = '4';
current.time_of_event = new GlideDateTime();
current.insert();
1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

I think email.from should give you the senders email.


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

I think email.from should give you the senders email.


Please mark this response as correct or helpful if it assisted you with your question.

StephenM
Kilo Guru

email.from did work, thanks. 

 

Is there a way for me to see all the fields available on the email. variable?  

 

 
current.source = 'email';
current.event_class = 'ProofPoint email';
current.type = 'Secure Message Password Reset';
current.message_key = email.uid;
current.description = email.body_text;
current.resource = email.from;
current.severity = '4';
current.time_of_event = new GlideDateTime();
current.insert();