Creating incident via email

msm4
Mega Guru

Hello,

I am learning Inbound email actions, Can anyone help me in understanding this topic.

Here, Im trying to create a incident through email( how ever there is an OOB inbound email action) . I have set the system properties to email receiving enabled as True.

Here Im confused to which user_Id ,I'm supposed to send the email , to create the incident.

Kindly help me out.

BR,

SM.

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

you need to send the email specified in the from form of your Email Account SMTP, so for example in my personal instance, this is the ServiceNow email address to send the email for creating the incident:

find_real_file.png

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

View solution in original post

7 REPLIES 7

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Glade to know that, yes it's the User Name field to be used.

Chandra Rawat
Kilo Contributor

Hi MSM,

 

Please fine the below code it works for you.

 

You can have the email inbound action on incident table  

 

 

 

current.caller_id = gs.getUserID();

 

current.comments = "email received from: " + email.origemail + "\n\n" + email.body_text;

 

current.short_description = email.subject;

 

 

 

current.incident_state = IncidentState.NEW;

 

current.contact_type = "email";

 

 

 

current.insert();

 

 

Please mark helpful if it solve your task

Abenezer Eshete
Tera Contributor

 

 

Hi.

 

hope your question is to know to which email address use to send incident to create record in Incident table.

 

Goto:

 system Mailboxes -> Email Accounts,  select ServiceNow SMTP  then in the record form of ServiceNow SMTP check active is true and the connection is working and also you can find email address you use to send incident.

 

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thanks!