Achieving the Best Performance in Microsoft Dynamics CRM

Visit Website View Our Posts

Recently, I was tasked with getting the best performance I could from our Microsoft Dynamics CRM. As most of us know, Dynamics CRM is not the quickest platform, so when you add further plugins and clientside code it just exacerbates this issue. According to Microsoft, one of the best practices for developing with Dynamics CRM is: Disable Plug-Ins.

 

If possible, disable registered plug-ins before you run your application.

 

There you go, best performance says don’t have any plug-ins . . . now for those of you that actually want to develop with Microsoft Dynamics CRM, here is what I found to be helpful:

 

JavaScript
I read that for every 100 millisecond of extra load time, Amazon loses 1% of their business. This means that clearly page loading times are huge.

 

Basic, Quick Fixes:

  • Only have the fields that Users actually need to see, update, or use present. The End User probably doesn’t need to see the Modified User—so remove it! The more fields you have on a given form, the longer it takes to load.
  • Secondly, I’d recommend collapsing tabs. The way a Dynamics CRM form loads, the information within a tab only renders when a tab is un-collapsed, so if you make the tabs collapsed by default, it won’t render them until the User needs the information.

 

Some basic JavaScript nuances can help a bit: minifying your JavaScript libraries or with custom Web Resource inserted in a form, hiding JavaScript under the HTML bulk of the body. But, there are also some Dynamics CRM tips to try.

 

Advanced, Custom JavaScript Fixes:

  • The more information you have on a form, the longer it takes to load. Instead use an organization service call (Create, Retrieve, Retrieve Multiple, etc.) when possible—call these asynchronously.
  • Use Business Rules versus Custom Code wherever possible.

 

Performance Center
Recently, I ran into a semi-hidden feature: Performance Center. The goal of this feature is to help analyze a forms loading time.

 

Step 1:
Hit Ctrl+Shift+q (in Chrome it’s ctrl+atl+shift+q). This will open a window that looks like this:

CRM June Mike - Image 1

 

Step 2:
Click the Enable button on the lower right, refresh the form (f5), and once again hit Ctrl+Shift+q. Then, you will see:

CRM June Mike - Image 2

 

The above screenshot shows the length of time it takes different items to load in Dynamics CRM.

 

Hope these tips and the Performance Center help you with achieving the quickest system possible for your company! Click here to read more blogs by Rockton Software.

 

Written by Mike Watt, Junior Developer at Rockton Software, a Microsoft Dynamics CRM Add-On Partner.

Show Buttons
Hide Buttons