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.
We have to create subscribers based on the publishers available in the codeunits.
learn.microsoft.com/.../devenv-events-in-al
Do you have any set of code for example?
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 4,308
Sumit Singh 2,798
Nimsara Jayathilaka. 2,793