Task attached to one catalog task should reflect in other

Asmita7
Tera Expert

Hi friends,

I am working on RITM workflow.

During entire flow, I am creating 5 catalog tasks one after the other for 5 different groups. My requirement is that when a group attaches a file to catalog task then the same file should be attached to other catalog tasks (even to those which are closed complete). So at the end of RITM close, all the tasks should have same files attached.

I am thinking to write code in workflow to attach the file in next group.

For previously completed tasks, I am thinking to write a business rule to copy the attachment.

 

Please suggest.

 

Thank you 

5 REPLIES 5

Anil Lande
Kilo Patron

Hi,

I can understand the customer expectations but this can be taken care by changing the way of working. Instaed of copying tasks to different tasks (Creating duplicate attachments will result into performance issue). Many organisation's are now looking to optimise database particularly avoiding duplicate attachments.

You can suggest a way to copy attachment to RITM instead of SC TASK, RITM is parent and it should hold all required attachments.

Also there is alternate solution to avoid duplicate attachments. Create a custom relationship to show attachments from all SC tasks of same RITM in related list.

https://www.servicenow.com/community/developer-articles/servicenow-create-custom-related-list-servic...

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande