Copy Attachment from RITM to Catalog Task using Workflow Activity

Arun J
Kilo Contributor

Hello All,

There is a requirement to copy the attachment from RITM to Catalog Task using workflow. 

I could see more community answer to do that using after Business Rule in task form, but I have been asked to do that using workflow.

I tried replicating some of the scripts in the community using Run Script activity but that didn't help.

(GlideSysAttachment.copy('sc_req_item', current.request_item, 'sc_task', current.sys_id);)

 

Can some help me please.

Thanks,

Arunkumar J

1 ACCEPTED SOLUTION

Ankush Jangle1
Kilo Guru

Hello,

In the catalog task use this code this will help you

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sc_task',  task.setNewGuid());

 

 

Mark it as Helpful/correct if it helps you

View solution in original post

7 REPLIES 7

Hi... I have a similar requirement to attach a template(which is attached in a kb article) to created ritm(created using workflow run script) please suggest me is there a way to do that

Ankush Jangle1
Kilo Guru

Hello,

In the catalog task use this code this will help you

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sc_task',  task.setNewGuid());

 

 

Mark it as Helpful/correct if it helps you

Pranav Bhagat
Kilo Sage

Hi

Hope you are doing good.

Is this question resolved or you need some more assistance?

if your query is resolved then please mark the correct response so that this thread can be closed.

Regards

Pranav