
Hello,
Good day.
im still a newbie in extension development and im stock,
does anyone know how to modify/add a block of code on an existing procedure inside the existing codeunits of BC 365?
can you give examples ? or link to follow?
thanks in advance.
regards,
Hi
If you're using a SaaS environment, it is not possible to modify the base code. So what you can do instead is that you can make use of Events provided by Microsoft.
Create a codeunit for Event subscribers. Check where you want to make changes in the base app, find out which event you can subscribe to, and build your logic
f.e., when you refer to codeunit 80, you will find some of the events like OnBeforePostLines, PostSalesLine, OnAfterPostSalesDoc, etc.
For events in Business central, refer to:
docs.microsoft.com/.../devenv-events-in-al
Cheers
Avinash B