Create an inbound email action to put the subject in short description.

Bharath kumar6
Tera Expert

I need to create an inbound email action so that it creates a record in change request table.

Subject - short description of change request.

Body - Description.

Attachments in email - attachments in change request.

 

Please guide me how to achieve this.

1 ACCEPTED SOLUTION

it should not be twice

small update

GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);

OR

current.insert();

GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);

current.update();

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

16 REPLIES 16

Hi,

I used the same code but attachment are getting into email logs but into change ticket.

 

can you please help me in this.

Mark Roethof
Tera Patron
Tera Patron

Hi there,

I would consider using Flow Designer for this, this is nowadays the first go to.

Anyway, Inbound Action:

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn