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...
Suggested Answer

codeunit extension

(0) ShareShare
ReportReport
Posted on by 5

how to Create code unit extensions in business central

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    In Business Central you can not extend an existing codeunit.

    But many codeunit has integration events that you can subscribe to.

    Here is some basics about developing codeunits.

    docs.microsoft.com/.../devenv-codeunit-object

  • Suggested answer
    Vaishnavi J Profile Picture
    3,062 on at

    Hi 

    As mentioned by NorthW   

    you cannot create a codeunit extension.

    But you can use event subscribers.

    Can you specify your requirement?

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • Suggested answer
    YUN ZHU Profile Picture
    95,595 Super User 2025 Season 2 on at

    Hi, Below are all the Object types currently available.

    pastedimage1647392119280v1.png

    As for the event subscribers mentioned by several experts above. You can refer to the link below.

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

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-event-types

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-subscribing-to-events

    Hope this will help.

    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 3,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans