Jack N Jones
10/30/2020, 10:18 AMWatz
10/30/2020, 12:26 PMfileObj
from?
I would assume that you have generated a PDF with fileObj = nlapiPrintRecord('TRANSACTION',recordID,'PDF',null);
Jack N Jones
10/30/2020, 12:51 PMJack N Jones
10/30/2020, 12:52 PMWatz
10/30/2020, 1:38 PMWatz
10/30/2020, 1:40 PMWatz
10/30/2020, 1:42 PMvar firstFile = nlapiLoadFile(); <- your other file
var invoicePDF = nlapiPrintRecord('TRANSACTION',recordID,'PDF',null);
var attachments = [invoicePDF, firstFile];
nlapiSendEmail(author,recipient,emailSubject,emailBody,null,null,records,attachments,false,true);
Jack N Jones
10/30/2020, 1:51 PM