Extending a data entity with Chain of Command is the same as extending a table. Create an extension class, use "ExtensionOf" attribute, call method and use Chain of command. [ExtensionOf(tableStr(PurchPurchaseOrderHeaderV2Entity))] final class Al0PurchPurchaseOrderHeaderV2Entity_Extension { /// <summary> /// Extension method /// </summary> /// <param name = "_entityCtx"></param> /// <param name = "_dataSourceCtx"></param> public void mapDataSourceToEntity(DataEntityRuntimeContext _entityCtx, … Continue reading D365FO – AX – Extends Data Entity method using Chain of Command
Category: Chain of Command
D365FFO – AX – Class extension – Method wrapping and Chain of Command
The functionality for class extension, or class augmentation, has been improved. You can now wrap logic around methods that are defined in the base class that you're augmenting. You can extend the logic of public and protected methods without having to use event handlers. When you wrap a method, you can also access public and … Continue reading D365FFO – AX – Class extension – Method wrapping and Chain of Command