This ancient code... can you simply place the nlapiPrintRecord at the end of the nlapiSendEmail function? In other words... null, assoRecs, nlapiPrintRecord('TRANS....); etc etc
v
Vtor
03/15/2019, 6:07 PM
i think that might work - nlapiPrintRecord does return an nlObjFile and the parameter for attachments takes an nlObjFile
t
TwoStep
03/15/2019, 6:56 PM
Thanks. I ended up creating a variable for the nlapiPrintRecord. Couldn't seem to get it to work within the SendEmail.