if (!gs.nil(sysID)){
var sysAttachment = new GlideRecord('sys_attachment');
sysAttachment.addQuery('table_sys_id',current.sys_id);
sysAttachment.query();
var bCopy=false;
while(sysAttachment.next()){
gs.addInfoMessage("Copying attachment " + sysAttachment.file_name + " to target ticket " + gr.number +" [table:" + ctype + "]");
bCopy=true;
}
if (bCopy){
GlideSysAttachment.copy('new_call',current.sys_id,ctype,gr.sys_id);//--copies them all in one go
}
}
var sysAttachment = new GlideRecord('sys_attachment');
sysAttachment.addQuery('table_sys_id',current.sys_id);
sysAttachment.query();
var bCopy=false;
while(sysAttachment.next()){
gs.addInfoMessage("Copying attachment " + sysAttachment.file_name + " to target ticket " + gr.number +" [table:" + ctype + "]");
bCopy=true;
}
if (bCopy){
GlideSysAttachment.copy('new_call',current.sys_id,ctype,gr.sys_id);//--copies them all in one go
}
}
It is what I was searching for is really informative. lufthansa flights It is a significant and useful article for us. Thankful to you for sharing an article like this.
ReplyDelete