Attachment uploaded in a task should be available in the next 2 tasks in a catalog item.

amogh_b6
Tera Expert

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.  

 

 

 

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@amogh_b6 

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?

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

@amogh_b6 

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?

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

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.

@amogh_b6 

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?

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