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.
Is it possible to download multiple PDFs simultaneously when selecting and saving multiple vendor Bill Payments?