<commit_before>This is a collection of sample code for working with Microsoft Dynamics CRM I have used in a variety of blog posts. Many of the samples were originally written for Dynamics CRM 2011, but each solution has been updated to use the Microsoft Dynamics CRM 2013 Service Pack 1 Update Rollup 1 SDK (version 6.1.1 installed from [NuGet](http://www.nuget.org/packages/Microsoft.CrmSdk.Workflow/6.1.1)). I have verified that each solution builds, but I have not necessarily deployed or tested. USE AT YOUR OWN RISK!

###CrmDataSnapshots
This solution shows an approach to taking data "snapshots" in Dynamics CRM, similar to Salesforce's analytic snapshots feature. The solution is described in detail in my ["A Data Snapshot Framework for Dynamics CRM"](http://www.alexanderdevelopment.net/post/2013/07/24/data-snapshot-framework-for-dynamics-crm) blog post. 

###CrmJsonProcessing
This solution shows an approach to working with JSON-formatted messages in Dynamics CRM custom workflow activities. This code sample was originally described in the MSDN code samples gallery [here](https://code.msdn.microsoft.com/Postingprocessing-JSON-in-396ead03). 

###CrmKeyValueManager
This solution shows an approach to working with key-value pair (KVP) data in Dynamics CRM custom workflow activities. This approach was originally discussed in these two blog posts:

- ["Working with key-value pair data inside Microsoft Dynamics CRM workflows"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Working-with-key-value-pair-data-inside-Microsoft-Dynamics-CRM/ba-p/152911)
- ["Working with key-value pair data inside Microsoft Dynamics CRM workflows – part 2"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Working-with-key-value-pair-data-inside-Microsoft-Dynamics-CRM/ba-p/153037).

###CrmRegexTools
This solution shows how to validate and extract text inside Dynamics CRM custom workflow activities using regular expressions. This approach was originally discussed in these two blog posts:

- ["Using regular expressions in Dynamics CRM 2011 processes"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Using-regular-expressions-in-Dynamics-CRM-2011-processes/ba-p/145437)
- ["Extracting data with regular expressions in Microsoft Dynamics CRM 2011 processes"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Extracting-data-with-regular-expressions-in-Microsoft-Dynamics/ba-p/145701).

###CrmScheduledWorkflows
This solution shows an method for scheduling recurring workflows in Dynamics CRM. The approach was originally described in my ["Scheduling recurring Dynamics CRM workflows with FetchXML"](http://www.alexanderdevelopment.net/post/2013/05/19/Scheduling-recurring-Dynamics-CRM-workflows-with-FetchXML) blog post.

###CrmStreamingNotifications
This is a proof-of-concept solution for implementing a near real-time streaming API for Dynamics CRM with Node.js and Socket.IO. A video demonstration of the solution in action can be seen here: http://youtu.be/j7rG9qD3ycg.

###CrmTeamConnection
This solution shows an approach to managing Dynamics CRM access team membership with connections and custom workflow activities. This approach was originally discussed in my ["Managing Microsoft Dynamics CRM 2013 access team membership using connections"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Managing-Microsoft-Dynamics-CRM-2013-access-team-membership/ba-p/152491) blog post.

###CrmUnitTesting
This solution contains samples from my ["Unit testing custom Microsoft Dynamics CRM code" series](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Unit-testing-custom-Microsoft-Dynamics-CRM-code-Part-1/ba-p/147009) that shows how to test custom CRM code with Moq and Visual Studio's unit testing tools. There are three demo projects and three corresponding Visual Studio unit testing projects:<commit_msg>adding links to "Creating a near real-time streaming interface for Dynamics CRM with Node.js" blog posts<commit_after>This is a collection of sample code for working with Microsoft Dynamics CRM I have used in a variety of blog posts. Many of the samples were originally written for Dynamics CRM 2011, but each solution has been updated to use the Microsoft Dynamics CRM 2013 Service Pack 1 Update Rollup 1 SDK (version 6.1.1 installed from [NuGet](http://www.nuget.org/packages/Microsoft.CrmSdk.Workflow/6.1.1)). I have verified that each solution builds, but I have not necessarily deployed or tested. USE AT YOUR OWN RISK!

###CrmDataSnapshots
This solution shows an approach to taking data "snapshots" in Dynamics CRM, similar to Salesforce's analytic snapshots feature. The solution is described in detail in my ["A Data Snapshot Framework for Dynamics CRM"](http://www.alexanderdevelopment.net/post/2013/07/24/data-snapshot-framework-for-dynamics-crm) blog post. 

###CrmJsonProcessing
This solution shows an approach to working with JSON-formatted messages in Dynamics CRM custom workflow activities. This code sample was originally described in the MSDN code samples gallery [here](https://code.msdn.microsoft.com/Postingprocessing-JSON-in-396ead03). 

###CrmKeyValueManager
This solution shows an approach to working with key-value pair (KVP) data in Dynamics CRM custom workflow activities. This approach was originally discussed in these two blog posts:

- ["Working with key-value pair data inside Microsoft Dynamics CRM workflows"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Working-with-key-value-pair-data-inside-Microsoft-Dynamics-CRM/ba-p/152911)
- ["Working with key-value pair data inside Microsoft Dynamics CRM workflows – part 2"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Working-with-key-value-pair-data-inside-Microsoft-Dynamics-CRM/ba-p/153037).

###CrmRegexTools
This solution shows how to validate and extract text inside Dynamics CRM custom workflow activities using regular expressions. This approach was originally discussed in these two blog posts:

- ["Using regular expressions in Dynamics CRM 2011 processes"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Using-regular-expressions-in-Dynamics-CRM-2011-processes/ba-p/145437)
- ["Extracting data with regular expressions in Microsoft Dynamics CRM 2011 processes"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Extracting-data-with-regular-expressions-in-Microsoft-Dynamics/ba-p/145701).

###CrmScheduledWorkflows
This solution shows an method for scheduling recurring workflows in Dynamics CRM. The approach was originally described in my ["Scheduling recurring Dynamics CRM workflows with FetchXML"](http://www.alexanderdevelopment.net/post/2013/05/19/Scheduling-recurring-Dynamics-CRM-workflows-with-FetchXML) blog post.

###CrmStreamingNotifications
This is a proof-of-concept solution for implementing a near real-time streaming API for Dynamics CRM with Node.js and Socket.IO. A video demonstration of the solution in action can be seen here: http://youtu.be/j7rG9qD3ycg.

I also wrote a four-part blog series about this topic.

- ["Creating a near real-time streaming interface for Dynamics CRM with Node.js – part 1"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Creating-a-near-real-time-streaming-interface-for-Dynamics-CRM/ba-p/178149)
- ["Creating a near real-time streaming interface for Dynamics CRM with Node.js – part 2"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Creating-a-near-real-time-streaming-interface-for-Dynamics-CRM/ba-p/178153)
- ["Creating a near real-time streaming interface for Dynamics CRM with Node.js – part 3"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Creating-a-near-real-time-streaming-interface-for-Dynamics-CRM/ba-p/178160)
- ["Creating a near real-time streaming interface for Dynamics CRM with Node.js – part 4"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Creating-a-near-real-time-streaming-interface-for-Dynamics-CRM/ba-p/178495)

###CrmTeamConnection
This solution shows an approach to managing Dynamics CRM access team membership with connections and custom workflow activities. This approach was originally discussed in my ["Managing Microsoft Dynamics CRM 2013 access team membership using connections"](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Managing-Microsoft-Dynamics-CRM-2013-access-team-membership/ba-p/152491) blog post.

###CrmUnitTesting
This solution contains samples from my ["Unit testing custom Microsoft Dynamics CRM code" series](http://h30507.www3.hp.com/t5/Applications-Services-Blog/Unit-testing-custom-Microsoft-Dynamics-CRM-code-Part-1/ba-p/147009) that shows how to test custom CRM code with Moq and Visual Studio's unit testing tools. There are three demo projects and three corresponding Visual Studio unit testing projects:
{'fraction_non_alphanumeric': 0.08941230276697919, 'fraction_numerical': 0.03841756231420078, 'mean_word_length': 5.159859154929578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 22, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7599240', 'n_tokens_mistral': 2753, 'n_tokens_neox': 2364, 'n_words': 856}