Book Image

Microsoft Dynamics CRM 2015 Application Design

By : Mahender Pal
Book Image

Microsoft Dynamics CRM 2015 Application Design

By: Mahender Pal

Overview of this book

<p>Businesses can have their developers build complete apps or plug-ins and interfaces to suit their business needs. With the application of MS CRM, administrators can alter the content, layout, and business logic for each business use case. Businesses can choose to run Dynamics CRM on their own internal server or to link to web-hosted installations. This book is an enhanced guide that covers all the new features released with Microsoft Dynamics CRM 2015. Coming straight off the shelf with a whole new frontier of updated business rules, process enhancements, SDK methods, and other enhancements, this book is a complete guide for all your Dynamics CRM questions.</p> <p>Starting off, this book will introduce you to the deployment options such as online and on-premise, and the software and hardware requirements as CRM customization. It will also teach you how to develop a sample application.</p> <p>Going deeper, this book teaches you about the new enhancements in Microsoft Dynamics CRM 2015 such as business process, new client-side scripting, mobile application, and actions enhancements. You will quickly get up and running with plugin development and project tracking concepts with the help of sample applications.</p> <p>The book concludes with how Microsoft Dynamics CRM extends its mobile capabilities and bring more feature-rich experience to the app users.</p>
Table of Contents (17 chapters)
Microsoft Dynamics CRM 2015 Application Design
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting plug-ins


During plug-in development, we need to troubleshoot our plug-in code for different errors that we may face during execution of the code. It is always a good practice to have your code well documented with proper exception handling. We can troubleshoot plug-in code in three ways:

  1. Using the ITracingService service.

  2. Using debugging.

  3. Writing logs to text files.

ITracingService helps us to generate logging information that we may want to do at different steps. This is especially useful when we don't have debugging tools available and need logging information to troubleshoot our code. We can get ITracingService from the service provider object as follows:

//Extract the tracing service for use in debugging sandboxed plug-ins.
ITracingService tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));

ITracingService has one method Trace that we can use to create logs as follows:

//adding log information
tracingService.Trace("Logging Message");

All the...