Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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_1 #servicenow

2 REPLIES 2

Sohail Khilji
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?