Email notifications to"Include attachments" from catalogue tasks to Request once request is closed

Ranjana Goel
Tera Contributor

Hello,

1. How can we automatically add users listed in catalogue request form to the watch list of Request, RITM and catalogue task?

2. We have a requirement that users which are added in the watch list to receive any attachments in an email notification once the Request is closed. 

In email notifications there is a way to select "Include attachments", but this only includes attachments that are on the RITM. We would also like the user to receive any attachments that were added along the way (e.g. from catalog tasks). 

Does anyone know how to achieve above these? Any pointers would be helpful.

Thank you!

1 REPLY 1

Ethan Davies
Mega Sage
Mega Sage

You could write a Business Rule to copy the attachments from a Catalog Task to the RITM when the Task is closed, they will then get included in the email.

GlideSysAttachment.copy('sc_task', current.getValue('sys_id'), 'sc_req_item', current.getValue('request_item'));

 To automatically add users from the request form to the Watch List, you can either write a Business Rule on the sc_req_item table to do so after the record is created, you can access the variables of the RITM via script and add them to the watch list field.