Copy & move attachments from one table to another table.

Abhishek_Thakur
Mega Sage

"Most often we need to copy and move the attachment between the tables"

GlideSysAttachment - copy(String sourceTable, String sourceID, String targetTable, String targetID). Which easily help to move the attachment from source to target table.

Here is the snippet code for instance.

Copy attachment.png

@Servicenow #servicenow

2 REPLIES 2

Sohail Khilji
Kilo Patron
Kilo Patron

This code will duplicate attachements when i add multiple attachements On incident Table...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

NikhilKamlekar
Tera Expert

Hi @Abhishek_Thakur Which type of BR it is?