Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Download PDF while Creating Bill Payment Record
While saving a Bill Payment record for multiple vendors, I want to download the PDF of the Bill Payment records to my local system.
We have developed an afterSubmit User Event script and a Suitelet for this purpose. The User Event triggers for each Bill Payment being created, and from there, it calls a function to invoke the Suitelet to handle the PDF download.
This works when processing a Bill Payment for a single vendor (via Transactions > Payables > Pay Single Vendor) — the PDF is successfully downloaded.
However, when processing Bill Payments for multiple vendors (via Transactions > Payables > Pay Bills), the Suitelet is not triggered, and the PDF is not downloaded. Despite the User Event triggering correctly for each Bill Payment, the Suitelet call fails to execute.