Need to email only specific attachments that are present in the Incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2023 10:25 PM
Hi,
I have created a UI action on my incident form and set up an event. The UI action calls the event and a notification is triggered which I set it up. Now, I've enabled the option "include attachments " in the notifications which as a result is sending all the attachments present in the incident form when the notification is triggered. However, the requirement is to send only specific attachment and not all the attachments when the notification is triggered. For eg, I've 4 PDFs attached to the incident form. When the email is triggered, I need the only the 2nd attachment included in the email and not the rest three.
P.S.-The attachment that is to be included will always have a fixed name.
Any help on this is appreciated.
Thank You

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2023 10:54 PM
Hello @Lokesh Pandey
Currently there is no OOB feature which would only send the second attachment in the record.
However, you might want to try and implement a customization which is as follows:
- Capture the sys_id of the record for which the email is to be sent in a email notifcation script.
- next run a query in sys_attachment table, and match the sys_id captured above in the table sys ID field on the attachment table.
- Next you need to sort them out with oldest attachment on top (a-z) and then get the second attachment of the record, and then attach it to the email.
This would require some heavy customization on the instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2023 11:01 PM
Hi @SatyakiBose ,
Thank you for the response.
The position of the attachment need not be fixed i.e. position could be anywhere. However, the name would be fixed/same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2023 06:28 AM
Hi Lokesh,
As SatyakiBose mentioned step 1 and 2 remians the same, instead of sorting and getting the record please use if case and match the attachment name from sys_atachment table with the name hardcoded. If that matches then you can select an do the next operation.
If this response has helped you please mark it as correct and helpful. Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 10:31 PM
Hi @Lokesh Pandey
Any findings for this i was struck here