copy sctask attachments - to rtim

nameisnani
Mega Sage

Hi Team ,

 

can anyone please help me on this requiement .

 

Ony for particular catalog item ' Snow Support ' 

 

whenever in sctask we have attached any attachment . the same to should copy to ritm .

 

how to configure , can any one please help me .

 

@Ankur Bawiskar  Please help me here 

11 REPLIES 11

@nameisnani 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rafael Batistot
Kilo Patron


Hi @nameisnani 

 

I have a similar situation in my work routine 

 

May you consider create a business Rule 

 

Parameter:After > insert 

condition: item > (name of your catalog)

 

scrip: 

 

(function executeRule(current, previous) {
var taskGR = new GlideRecord('sc_task');
if (taskGR.get(current.table_sys_id)) {
GlideSysAttachment.copy(
'sc_task',
taskGR.sys_id,
'sc_req_item',
taskGR.request_item
);
}
})(current, previous);