Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.