Category Archives for "Development"

9 Exception handling in Custom workflow activities

Handling exceptions is an important part of any development effort. In the past few months, I’ve run across several instances where exceptions are not being properly handled in custom workflow activities. Normally, this doesn’t actually cause issues with the workflows in which the custom workflow activities are being used: The workflow step will fail with […]

Continue reading

3 Formatting JSON Responses

I was debugging a CRM 2011 LINQ query today and needed to view the debug information, which is in JavaScript Object Notation (JSON) format. Digging through the InterWebs, I found that WittySparks had already done the work for me. Ways to Format and View JSON Online Great work and a very useful resource. Now I […]

Continue reading

Sandboxed Plugin Development: HtmlDecode Tidbit

When working with things like Email, it is sometimes necessary to decode a string of text that has been HTML-encoded. This is the process where special characters are replaced with their numerical equivalents to prevent misinterpretation of the HTML text. You use it like this: string xmlPacket = HttpUtility.HtmlDecode(input); This method is found inside of […]

Continue reading

Converting to CRM 2011 JavaScript: Form Elements

One of the most fascinating things I found during the creation of the CRM Migration Assistant is the different methods developers use to access CRM form fields, and other form elements. Normally, people access a form field using the following style of JavaScript: crmForm.all.name This is the normal and perfectly acceptable (and supported) method for […]

Continue reading

2 Debugging Sandboxed Plugins

I learned some interesting things about working with Sandboxed plugins last week that I thought I’d share. Attaching to Processes Sandboxed plugins are run by Microsoft.Crm.Sandbox.WorkerProcess.exe so that is the process that you will need to attach to in order to debug your plugin.  If there are more than one, then attach to all of […]

Continue reading