- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 01:01 PM
I'm using the below script to create a request from an inbound email that will have attachments The workflow that runs for this request sends out an approval notification and this notification is checked to "Include Attachments", but the attachments are not on the approval email. I've verified that the email log Action says "Attached to the Target Record" and the RITM of the REQ has the attachments, but the approval email does not have the attachment for the approver to review. Can someone tell me what is missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:50 AM
Include attachment works when the record on which notification triggers has file attached to it.
I consider your email is on sysapproval_approver table
So unless you attach file to approval record it won't send the file as attachment in email
So you copy the file from RITM to approval record using GlideSysAttachment.copy() method and then it will work
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 09:49 AM
Thank you for your reply Ankur. I ended up putting an async before business rule in place with the below script to copy the attachments from the RITM to the approval notifications and that worked.