Expand my Community achievements bar.

How to add multiple attachments to a mail

Avatar

Former Community Member

Hello, 

I am working on the standard PDF "Root Cause investigation" (EHHSS_INC_AIF_INV_ROOTCAUSE)". There is a section to attach documents but SAP did not code anything... The user click on the 'send' button and the PDF is attached to the mail...I also need to attach to this mail all the documents that the user has selected.

I know how to send the PDF in Javascript but how do I attach other documents to the same mail?

try {

  event.target.mailDoc({

  bUI: true,

  cTo: email, //e-mail receiver

  cSubject: subject, //subject line

  cMsg: note //message of the mail

});

} catch(e) {

Thank you!

Marie-Josée

0 Replies