web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 390

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. 

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 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

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

    Do you have any set of code for example?

  • Verified answer
    pankaj.k Profile Picture
    994 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.

  • Verified answer
    YUN ZHU Profile Picture
    92,703 Super User 2025 Season 2 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,308

#2
Sumit Singh Profile Picture

Sumit Singh 2,798

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,793

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans