How to set the caller id from email inbound action

HarikrishH
Tera Contributor

Hi,

 

We are trying to get the caller id from the email subject of the inbound action email and set it as a caller for the incident.

 

Thanks for any help.

OlaN
Tera Sage

Raghav Sharma24
Giga Patron

You get the caller from email.from objevt , from that email you can get the sys_id of user by gliding the user table.

If you are getting something specific in the email, then it should be at a defined place , like the subject should start with caller id. In that case you can perform string operations on the email.subject and get the caller id.

MD AQUIB KHAN
Giga Guru

Hi,

I guess this is what you are looking for 

current.caller_id = email.subject;

Please share any scripts if you have 

 

Hi Aquib,

Thanks for the quick replay.

 

I sent an email to ServiceNow to create an incident in Servicenow and I mentioned the user Id in the email Subject but still no caller in the incident form. 

 

HariS1_0-1667481507643.png

 

 

Inbound action:

HariS1_1-1667481764200.png

 

 

 

Thanks.