Adding Attachment to Catalog Task on a Request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 09:40 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 10:02 AM
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
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 04:18 AM
It worked for my Item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 02:00 AM