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...

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

shyamkumar VK
Kilo 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);

 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

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...

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

shyamkumar VK
Kilo 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);

 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar