How to add sysapproval_approver record attachment to an email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:27 PM
I’ve created an audit process that uses the standard catalog item request and workflow that has a user approval step. When the approval email is sent to the approver, it has the Original User Security Report attached for the approver to review and either approve or reject using the approval or rejection links in the email as seen in this screenshot.
If they approve it, the request is closed. If they reject it, they have been instructed to add an updated user security report to the rejection email that notes the changes that need to be made.
I need to be able to grab this second attachment from the sysapproval_approver record and attach it to an email that is triggered from a Create Event step further down the stream of this workflow. This second attachment can really have any name, but in testing, it is always the second attachment on the sysapproval_approver record as seen in this screenshot.
Guessing this will need to be scripted, but I’m not sure how to script this and I’m not sure where the script needs to live at. Any assistance is appreciated!