Adding Attachment to Catalog Task on a Request.

David Santel
Giga Guru

I created a simple workflow and added an attachment to Task2. When I goto the Request and open Task 2 I do not see the attachment?  So I need to logically add an attachment to Task 2

 

How do I add an attachment to a Catalog Task in the below workflow? This will be a .doc checklist that needs to be used for task 2. 

 

 

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

This looks double with another post from you. Or is this different?

Maybe this helps already:

"Personally I would go for an async business rule on insert of the sc_task + the condition using the condition builder instead of scripted in the script field (using the script field makes the BR always execute, using the condition field not + nicer with the debugger).

Also I would go for adding the attachment to the Catalog Item, and referencing that.

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

This would copy any attachment, attached to the Catalog Item, and copy this to the new generated sc_task."

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

It worked for my Item.

Thanks @Mark Roethof !

It worked like a charm!

 

Should be marked as helpful...

Regards

 

Simone