is there a way to include attachments on Approval Email Notifications without having to copy them from the "approval_for" reference record ?

Makosko
Tera Expert

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.

32 REPLIES 32

No, this is from the Incident table.   The links to the attachments appear on the approval record in the "Approval Summarizer" section, but they do not attach directly to the approval record.


I see what you mean, and it was giving me one heck of a time trying to figure this out.......But I got it work...



I don't know if its a Fuji thing (I did all my testing in the sandbox) but as soon as I sent to Async all worked as expected.... /facepalm


function onAsync(current) {



  //This function will be automatically called when this rule is processed.


  var gr = new GlideRecord("incident");


  gr.addQuery('sys_id', current.sysapproval);


  gr.query();



  while(gr.next()) {


  GlideSysAttachment.copy("incident", gr.sys_id, "sysapproval_approver", current.sys_id);


  }


}




Try it out.   Hopefully it works for you.



Mike


That worked!   Thank you for all of your help!


You're very welcome!


HI Michael,



I have same kind of requirement. Can you once check this link Attachments Copy



Thank you.