Here is a Business Rule to add attachments to approval records before the approvals are generated
Business Rule
Table Approval [sysapproval_approver]
Advanced
Before Insert
var ritm = new GlideRecord('sc_req_item');
ritm.addQuery('sys_id', current.sysapproval);
ritm.query();
if(ritm.next()) {
GlideSysAttachment.copy('sc_req_item', ritm.sys_id, 'sysapproval_approver', current.sys_id);
}

Leave a comment