Discussions
Send vendor bill as attachment
Hi All,
I am trying to send a transaction record as an attachment via mail.
I have used the following user event aftersubmit code.
var file = nlapiPrintRecord('TRANSACTION', nlapiGetRecordId(), 'DEFAULT', null);
//send the PDF as an attachment
nlapiSendEmail(Author, Recepient, 'Transaction Record', 'Please see attached transaction', null, null, null, file);
Using the above code, I was able to send customer invoice, Purchase orders record. But when trying to use the same for "vendor bill" record, it does not allow to send as attachment.
From UI we can create/generate/print invoice, purchase orders but cannot print a vendor bill.
Is there a way to send a vendor bill as an attachment to any user or any email id.