Email notifications to"Include attachments" from catalogue tasks to Request once request is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 09:19 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 01:29 PM
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.