Announcements
We have added a function in standard codeunit (ArchiveManagement) in dynamics nav 2018, now we are upgrading this to Business Central. Is there any way we can create extension for standard codeunit as it is available for tables.
Also there are some standard local function which we have used in our customized function. This customised function is being called on a page.
We have check the event & publisher, but as we have added a customised function in standard codeunit how we do this in business central.
You cannot "extend" a standard codeunit. You can create a new codeunit in AL and then define here your custom functions.
If you're using some standard local function that are not defined as External, you have no way to use them in your extension from another object. You can recreate that functions in your custom codeunit (by copying the code) if you need them.
There is no extension for codeunit.
You need to move the custom function to new custom codeunit or to convert your solution to event and if the event that you are looking for is not there , you need to write request for it to microsoft using below repo link :
if you are ok with hybrid development (working with CSIDE and AL) , then another workaround is explained on below :
docs.microsoft.com/.../devenv-running-cside-and-al-side-by-side
André Arnaud de Cal...
294,255
Super User 2025 Season 1
Martin Dráb
232,984
Most Valuable Professional
nmaenpaa
101,158
Moderator