Copy attachment
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello All ,
In a RITM , i have a field where i attached a file (XLS) ...
Could you please show me how i can copy this file to another table ?
I have tried this , but the file is attached in the activity , not in the attachment doc .
var attachmentGR = new GlideRecord('sys_attachment');
attachmentGR.addQuery('table_sys_id', ritmSysId);
attachmentGR.query();
if (attachmentGR.next()) {
var sa = new GlideSysAttachment();
sa.copy('sys_attachment', ritmSysId, sys_class_name , ciLDZ );
}
0 REPLIES 0
