inbound email to include user information for incident creation

DevtoSME
Giga Guru

Im using the OOB create  incident inbound email and i want to know how to include the users location and other sections of the record to populate some of the incident form. 

 

such as 

location: sys_users location

short description: subject

description: email body

assignment group: IT

1 ACCEPTED SOLUTION

Satishkumar B
Giga Sage
Giga Sage

@DevtoSME refer this:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0521750
https://www.servicenow.com/community/itsm-articles/incident-creation-via-e-mail-inbound-action/ta-p/...

…………………………………………........................................................................................
Please Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................

View solution in original post

2 REPLIES 2

Satishkumar B
Giga Sage
Giga Sage

@DevtoSME refer this:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0521750
https://www.servicenow.com/community/itsm-articles/incident-creation-via-e-mail-inbound-action/ta-p/...

…………………………………………........................................................................................
Please Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................

JuliaHowells
Tera Expert

You'll set the fields in the 'actions' tab on the inbound action. 

current.caller_id = gs.getUserID();
current.description = "received from: " + email.origemail + "\n\n" + email.body_text;
current.short_description = email.subject;
current.location = gs.getUserID().location;
current.assignment_group = 'YOUR GROUP SYS_ID';