How to copy attachments from TASK to RITM

raj99918
Tera Contributor

Hi 

 

How to copy attachments from TASK to RITM

6 REPLIES 6

Sohithanjan G
Kilo Sage

Hi @raj99918 

 

You can use this after update BR

(function executeRule(current, previous /*null when async*/ ) {

GlideSysAttachment.copy('sc_task', current.sys_id, 'sc_req_item', current.request_item);
gs.addInfoMessage('Attachements coppied from Task to RITM');
    
})(current, previous);

 

 

Please mark the answer as Accepted as Solution & hit helpful if it suffices  your requirement !!

Hi @Sohithanjan G  I have done the same table is sc_task right ? But it’s not working for me 

Hi @raj99918 , 

 

Try to update the form, it would trigger the BR. Update SC task & check . 

 

Please mark the answer as Accepted as Solution & hit helpful if it suffices  your requirement !!

 

Hi @Sohithanjan G  I have updated it as well but no luck