web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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
    61,005 Super User 2025 Season 2 on at

    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

    Do you have any set of code for example?

  • Verified answer
    pankaj.k Profile Picture
    994 on at

    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
    95,634 Super User 2025 Season 2 on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,785

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans