Attachment from inbound email is not added to Record

saranyavs
Tera Expert

Hi team,

 

Attachment from inbound email is not getting added to Record. In Attachment table we can see that both Table name and Table sys_id is empty. So that inbound email script is unable to find record . 

 

saranyavs_0-1731338448175.png

 

Regards,

  • Saranya

 

1 REPLY 1

JenniferRah
Mega Sage

I'm not sure what all your inbound action is doing but the generic answer is to use the GlideSysAttachment.copy() method. It would look something like this if you are pulling it from the email record: 

 

GlideSysAttachment.copy('sys_email', event.parm1, current.sys_class_name, current.sys_id);