Error logging

Dynamics CRM 2011 does not provide a direct way to add and track your own custom error messages. While the default logs will track and log errors as they occur, sometimes it's not the easiest way to debug. In order for us simplify the task of debugging and logging your specific error messages, we can take a different approach.

Getting ready

For the purpose of this recipe we will create a new solution. Using your current environment, or a new online instance, create a solution called Chapter6. This solution will use the latest version of JSON and jQuery libraries.

How to do it...

Within the newly created solution, let's focus our attention on the Account entity. We will capture our debug and error messages generated by a script in this ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.