How to copy attachments from inbound action to incident record.

KARAN24
Tera Contributor

Hi Team,

 

When emails are sent to servicenow with attachments ,the attachments are not getting added to respective incident record.And also we need to validate if the email sent is from user present in servicenow.If the user is not present we do not have to copy the attachments.

 

How we can achieve this.

 

Thanks in Advance.

 

Regards,

Karan

7 REPLIES 7

Hello @KARAN24 

 

Try this

 

GlideSysAttachment.copy('sys_email', sys_email.sys_id, current.getTableName(), current.getUniqueValue());

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

Hi Samaksh,

 

Where should I use this:

GlideSysAttachment.copy('sys_email', sys_email.sys_id, current.getTableName(), current.getUniqueValue());

Regards,

Karan

 

Community Alums
Not applicable