Reputation: 650
I would like to override some behavior during error handing in CRM (error windows specifically). Is it possible? Could someone point me in the right direction?
Is it possible to call events before and after - js, workflow, plugin?
Upvotes: 1
Views: 129
Reputation: 1581
You can always handle errors for the code that you write and it is good practice to do this since users usually don't know what to do with the native error handlers or what they mean. Add your own try/catch blocks to the code and then writing those errors to a log file, a log entity, e-mail support, etc. Even with JS you can add your own try catch blocks and handle them however you want.
If you were looking to modify the error handling for native MSCRM errors would require you to open up the source code and modify the JS/HTML files, etc. Doing this can cause issues with Upgrades, hot fixes, dealing with MS support, and a whole host of other reasons why this is a bad idea.
Upvotes: 1