Hi Folks,
I have a class extension of base class.
I don't want to execute the code in method of base class.
How can i bypass base method code in my extension class?
Thanks in advance :)
*This post is locked for comments
I have the same question (0)

Hi Folks,
I have a class extension of base class.
I don't want to execute the code in method of base class.
How can i bypass base method code in my extension class?
Thanks in advance :)
*This post is locked for comments
I have the same question (0)You can't but you could use chain of command and exclude the results of the original method run. Look here:
https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/extensibility/method-wrapping-coc
Technically you still run the original method though and then the extension after assuming it can be extended (see limitations in link). Also if you can extend the original caller to call a custom method instead of the base class method.
Neither is full proof though.