is there a way to include attachments on Approval Email Notifications without having to copy them from the "approval_for" reference record ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2014 08:55 AM
For some strange reason, I seem unable to have SN copy attachments from the approval_for reference record to an actual approval request. In my email notification, I have the "Include Attachments" field checked, still no attachments coming through. Is there something else I am forgetting to check ??
Any help with this would be very much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2015 11:28 AM
My business rule is working correctly to display the attachments on the Approval form. It is just the email not displaying the attachment link that is the problem. (Also, I am unable to use your Business Rule script in Fuji. It gives me this error message "Missing function declaration for onBefore")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2015 01:08 AM
Yes I did, using the script posted by Casey below... is it not working for you ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2015 11:42 AM
We used an after insert business rule on the approval table. And then in the email notification we checked the "Include Attachments" box. This way if a user is on the go via mobile, they don't have to login to the instance to view that attached files. They can view and reply directly from that email.
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id', current.sysapproval);
gr.query();
while(gr.next()) {
GlideSysAttachment.copy("sc_req_item", gr.sys_id, "sysapproval_approver", current.sys_id);
}
Hope that helps!
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2015 11:56 AM
I just modified my BR to be after insert, and I used the same script that you have (except changed it for my table), but it is still not working for me. The Include Attachments box was already checked.
Is there something that you think could be restricting this for task tables?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2015 12:05 PM
There shouldn't be. Are you doing this in a Catalog Item workflow? If so, you want to keep the sc_req_item table coded above.
Even though its a custom task you are still grabbing the attachments from the RITM table.
Also when you test this, does the attachments attach themselves to the approval record in the system?