This ancient code... can you simply place the nlap...
# suitescript
t
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
i think that might work - nlapiPrintRecord does return an nlObjFile and the parameter for attachments takes an nlObjFile
t
Thanks. I ended up creating a variable for the nlapiPrintRecord. Couldn't seem to get it to work within the SendEmail.
👍🏻 1