Sunday, April 14, 2019

Attach multiple Files using nlapiSendEmail

Users must use nlapiLoadFile with the internal ID of the files in the File Cabinet and place it in an Array. 

Below is the example:
var attachments = [nlapiLoadFile(1),nlapiLoadFile(16),nlapiLoadFile(228)];
nlapiSendEmail(4, 'test@email.com', 'My Subject', 'Message', null, null, null, attachments);

No comments:

Post a Comment