Announcements
No record found.
Hi everyone,
I need to add a new toggle in the Posting Invoice form under AR > Invoices > Batch invoicing > Invoice. The purpose of this toggle is to trigger the printing of a custom SSRS report automatically after the invoice is posted successfully.
Details:
How can I add a new toggle to the Posting Invoice form using an extension or other method?
Once the toggle is selected and the invoice is posted, how can I trigger the printing of my custom SSRS report automatically?
What event handler or controller should I use to invoke the print process after the posting is done?
Thanks in advance for your help!
Thanks for the suggestions. Quick update on what I tried and where I’m stuck:
SalesEditLines
SalesFormLetter_Invoice.afterOperationBody()
ParmId
SalesParmUpdate
SrsReportRunController
“Cannot run form on non interactive session.” So this point seems server/non-interactive
afterOperationBody()
{UserId, DataAreaId, ParmId, CreatedDateTime}
Closing
CustInvoiceJour
SRSPrintMediumType::Screen
Thanks @Martin Dráb, that explains the “non-interactive session” error clearly.
I’ll focus on SalesInvoiceJournalPrint as you suggested. Could you please confirm which method/hook point you recommend there? For example, should I extend SalesInvoiceJournalPrint.printJournal(Set _journalList) after super() to trigger my custom SSRS report?
SalesInvoiceJournalPrint.printJournal(Set _journalList)
super()
Also, my goal is interactive Screen preview right after posting (not batch). In your experience, is it safe to open SSRS viewer from that printing pipeline, or should I always trigger it from a client-side form/controller instead (and only print to printer/file in batch)?
If you have a small code snippet or the standard pattern (similar to COD label/shipping label printing), I’d really appreciate it.
SalesInvoiceJournalPrint.printJournal()
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1