✏️ Explanatory Question

Difference between chain of command and method overriding in d365 f&o?

👁 305 Views
📘 Detailed Answer
💡

Answer with Explanation

Difference between chain of command and method overriding in d365 f&o?

Chain of Command Method Overriding

Chain of Command (CoC) is a design pattern in Microsoft Dynamics 365 that allows developers to customize and extend base Microsoft code. CoC allows developers to create a new class and write code that runs before or after the base method.

Method overriding is the process of changing the functionality of an inherited method. To override a method, you create a method in the subclass with the same name and parameters as the method in the superclass.

Create an Extension Class: You need to create an extension class for the standard class containing the public method you want to customize. Use the [ExtensionOf] attribute to specify the standard class.


[ExtensionOf(classStr(StandardClass))] // Replace 'StandardClass' with the actual class you're extending.
final class CustomClass_Extension
{
    // Add your custom methods or override public methods here.
}