CoC ChainofCommand example in Microsoft Dynamics 365 Finance and Operations apps
Views (172)
CoC ChainofCommand example in Microsoft Dynamics 365 Finance and Operations apps
class TestMethExtnCoCBase
{
public static void main(Args _args)
{
info("Hello from base class main method");
}
}
[ExtensionOf(classstr(TestMethExtnCoCBase))]
final class TestCoC_Extension
{
public static void main(Args _args)
{
info("From CoC class using method extensions");
next main(_args);
}
}
//- First method wrapper is called and then using next the cursor executes the logic from original class.
*This post is locked for comments