Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Implement procedure in ReportExtension

Posted on by 593

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?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Implement procedure in ReportExtension

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,378 Super User 2024 Season 2 on at
    RE: Implement procedure in ReportExtension

    Hi, tonyab is right, subscribing to events must be in Codeunit.

    For example,

    pastedimage1675384197040v1.png

    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

  • tonyab Profile Picture
    tonyab 55 on at
    RE: Implement procedure in ReportExtension

    You would actually create an EventSubscriber within a Codeunit to add your code.

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,232 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans