Unit testing custom Microsoft Dynamics CRM code – Part 1 (series introduction)

When writing custom code that interacts with Microsoft Dynamics CRM, it is important to: Unit test your code Use an automated unit testing framework to automate your unit tests Write unit tests that do not depend on external resources such as a Microsoft Dynamics CRM application server or SQL Server Over the course of my next several posts, I’ll be showing you some best practices for unit testing Dynamics CRM-facing code using Visual Studio unit testing tools and the Moq object mocking library. »

Extracting data with regular expressions in Microsoft Dynamics CRM 2011 processes

In last week’s blog post, I showed how to use regular expressions in Microsoft Dynamics CRM 2011 processes for data validation. Today I’ll show you how you can use a similar approach to parse text and extract matching strings using regular expressions in a Dynamics CRM 2011 process. If you’re unfamiliar with regular expressions, I recommend you take a look at my earlier post for an idea of how they work. »

Using regular expressions in Dynamics CRM 2011 processes

Regular expressions offer programmers an easy way to validate strings in many programming languages. In this post, I will show how you can add regular expression validation capabilities to Dynamics CRM 2011 processes. Regular expressions overview First, for those who may not be familiar with regular expressions, let me offer a brief example of what kinds of problems they can solve. »

Custom identity class to represent Dynamics CRM users in WCF services

A few weeks ago I wrote a post called “Custom WCF service authentication using Microsoft Dynamics CRM credentials” in which I showed how to secure Windows Communication Foundation (WCF) web services using Dynamics CRM usernames and passwords. In that post, I used a GenericIdentity object to store the CRM user information, but unfortunately the GenericIdentity class is extremely limited in the amount of user-related information it can hold, so in this post I will show how to create and use a custom identity object to represent CRM users. »

A Better Dynamics CRM E-mail Editor With TinyMCE (updated for IE8 and 9)

When I developed the JavaScript for my A Better Dynamics CRM E-mail Editor With TinyMCE post back in June, I tested it in both Chrome and IE10. Since then I have gotten a few reports of it not working in IE8 or IE9. Initially, I thought there might be a problem with the way the earlier versions of IE were handling the protocol-relative URLs to the TinyMCE CDN script, but it turned out that the script just wasn’t loading properly when the editor popup was initially launched. »