Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Extending codeunits in business central

(0) ShareShare
ReportReport
Posted on by 386

Hello community, 

I want to ask that if I want to extend codeunits in business central how can I do that as there is no code snippet for code unit extension. 

  • Verified answer
    YUN ZHU Profile Picture
    81,598 Super User 2025 Season 1 on at
    RE: Extending codeunits in business central

    Hi, unfortunately, you cannot extend codeunit in Business Central.

    But you can modify some default behaviors, as long as the standard reserves Event for us.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-events-in-al

    Hope this helps.

    Thanks.

    ZHU

  • Verified answer
    pankaj.k Profile Picture
    974 on at
    RE: Extending codeunits in business central

    Hi Muhammad Anas Naeemi,

    check the below link  mohana Yadav already answered the question.

    https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/218269/modify-standard-codeunit-using-extensions/582548

    For more detail please share the Codeunit ID and explain what you  want to customize.

  • Muhammad Anas Naeemi Profile Picture
    386 on at
    RE: Extending codeunits in business central

    Do you have any set of code for example?

  • Verified answer
    Mohana Yadav Profile Picture
    60,213 Super User 2025 Season 1 on at
    RE: Extending codeunits in business central

    We have to create subscribers based on the publishers available in the codeunits.

    learn.microsoft.com/.../devenv-events-in-al

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,190 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans