1

GlideSysAttachment.copy('sc_req_item', "ritm sys_id", 'sc_task', "task sys_id");

Copy Attachment from one table to another ServiceNow
Working Code Asked question July 4, 2023