Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Inbound Email Attachment

Vijay Kumar21
Tera Contributor

Hi Team,

 

My Inbound email attachment is not automatically attaching to its related records.

After investigating  I was able to find that in the sys_email logs table the 'email attachments' related list 

has all the attachments stored but the action field was empty 

VijayKumar21_1-1680661400949.png

 

 

how to set the action in the email attachment? 

 

2 ACCEPTED SOLUTIONS

Anil Lande
Kilo Patron

Hi,

Can you please share email logs? which Email inbound actions processed?

Have written any code to copy attachments to target record?

https://www.servicenow.com/community/developer-forum/how-to-copy-attachment-from-email-using-inbound...

View solution in original post

shyamkumar VK
Mega Patron

Hello Vijay, 

did you include copy attachment piece in your code which looks like below , modify your target name accordingly 

 

GlideSysAttachment.copy('sys_email',current.sys_id,'sc_req_item',ritm.sys_id);

 

 

View solution in original post

2 REPLIES 2

Anil Lande
Kilo Patron

Hi,

Can you please share email logs? which Email inbound actions processed?

Have written any code to copy attachments to target record?

https://www.servicenow.com/community/developer-forum/how-to-copy-attachment-from-email-using-inbound...

shyamkumar VK
Mega Patron

Hello Vijay, 

did you include copy attachment piece in your code which looks like below , modify your target name accordingly 

 

GlideSysAttachment.copy('sys_email',current.sys_id,'sc_req_item',ritm.sys_id);