Announcements
No record found.
Hi
I have to implement a report extension for Report 393 ("Suggest Vendor Payments"). In this report there is an Integration Event defined (OnGetVendLedgEntriesOnBeforeLoop).
How can I hook in there and add my code in the new Report extension?
You would actually create an EventSubscriber within a Codeunit to add your code.
Hi, tonyab is right, subscribing to events must be in Codeunit.
For example,
More details:
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-subscribing-to-events#example-1
Hope this helps as well.
Thanks.
ZHU
It is also important to remember that when you add code to that event. Your code will execute also for other extensions to the same report.
So it will not only be valid for your report modificatons.
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.
OussamaSabbouh 1,850 Super User 2026 Season 1
YUN ZHU 1,084 Super User 2026 Season 1
Dhiren Nagar 959 Super User 2026 Season 1