PFE Core Library for Dynamics CRM Documentation and Code Samples

Documentation. Always promised, rarely delivered. Our recently announced PFE Core Library for Dynamics CRM has proven no different. A shiny new box that when opened was missing its instruction manual. Well, not being one that succumbs to stereotypes, I decided to put Visual Studio aside for a moment and whip together details on what’s in…


PFE Core Library for Dynamics CRM on CodePlex and NuGet

Last week, we publically released a C# .NET library for Dynamics CRM that’s the result of multiple customer and partner advisory engagements. Predictably, for every development question we answer or recommendation we provide, a request for a code sample to illustrate the concept is sure to follow. When authoring code samples for customers and partners, we…


Optimize CRM 2011 Service Channel allocation for multi-threaded processes using .NET Task Parallel Library (TPL) and a thread-local service proxy

The latest release of the Dynamics CRM 2011 SDK (v5.0.12) provides new guidance on improving service channel allocation performance. This guidance builds upon a previous recommendation to cache your references to service proxy objects such as OrganizationServiceProxy. While this recommendation still holds true, it presents an issue for another best-practice, implementing multi-threaded processes, because the…


How to Increase the 50 Record Page Limit on OData Retrieve Responses for Dynamics CRM 2011

An inherent limitation placed on retrieving data via CRM 2011’s OData endpoint (OrganizationData.svc) is that the response can only include up to a maximum of 50 records (http://msdn.microsoft.com/en-us/library/gg334767.aspx#BKMK_limitsOnNumberOfRecords_). For the most part, this does not impact your ability to retrieve the primary entity data sets because each response will provide the URI for a subsequent…


How to Enable WCF Tracing for the CRM 2011 Outlook Client

Recently I was working with a customer on some CRM 2011 Outlook client performance issues where I needed to inspect the data sent between the client and server. With CRM 4.0 I would use Fiddler to capture traffic to/from the client and server to see exactly what was happening. The CRM 2011 Outlook client now…