Hello All , I need to add my custom code in standard codeunits in Business Central , can any one suggest me how can i add code to standard codeunits in Business central.
This is not possible in the SaaS environment, you need to subscribe to standard events (with EventSubscriber definitions) for customizing code.
On-premise you can still modify standard objects as before.
Actually I am working on Upgradation from NAV 2017 to Business Central , in NAV 2017 i have custom functions in Standard Codeunit (Sales-post) now i want to add that custom(functions) code to Business Central.
I have custom functions in " Sales-Post Codeunit(80) " NAV 2017 ,And now I need to add them in Business Central Sales-Post Codeunit.
Are you talking about Business Central on-premise or SaaS?
If on-premise, you can still modify the standard object via CSIDE and add your code in the standard codeunits. In a SaaS environment you can't do that, you cannot modify standard code. You need to check your standard codeunit and detect where you have placed custom code, then use standard events raised by D365BC on that codeunit and subscribe to them.
I am Working with Saas , Can I add my Custom function after last Integration Event provided by D365BC.
If this is the right point for you, the answer is yes. You need to subscribe the right event where you want to place your custom code.
I got it.
Business Applications communities