Attachment uploaded in a task should be available in the next 2 tasks in a catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:42 AM - edited 10-31-2023 02:57 AM
Hi @Ankur Bawiskar , we have a catalog item workflow in which we have 3 catalog tasks which are one after the other in the flow. So, we have a requirement that any attachment uploaded in task 1 should be available in task 2 and 3 as well.
For example: if any user submits the form and fulfiller attaches a document in the task 1 and closes the task, then this same document should be available/uploaded in task 2 and 3 as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:53 AM
you can use before insert BR on sc_task and copy the attachment
share what script did you try so far and what's not working?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 03:15 AM
since you mentioned those tasks are created 1 after another, then why would someone attach a file to closed task
Example: if task1 is closed then why will someone attach file to task1 and why to copy the file?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 03:38 AM
Hi @Ankur Bawiskar ,
The fulfiller who is working on task1 will attach one document mentioning the fix he did for that task and that document should be visible in task2 and task3 for the fulfillers working on those tasks.
Thanks,
Amogh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 03:43 AM
you can use after insert BR on sys_attachment and see if a file is added to sc_task record
Based on that you can copy the file
what script did you start with?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader