My mission is: after the user clicks on cancel order button, I need to check some data and if the data is true, I need to prevent from the button functionality to run and alert the user, where can I insert my code?
Mscrm.Form.salesorder.CancelOrder
is a vanilla button and seems close to add or edit, how can I do that?
InvalidPluginExecutionException
if it is satisfied