Creating an OrganizationService connection to Dynamics 365 Online v9.0

I recently tried to use the sample code in the Dynamics 365 SDK (also available here) to create a connection in code to the Dynamics CRM v9 Organisation service. No matter what I did, I could not get the sample … Continue reading

Posted in Uncategorized | Leave a comment

Programmatically removing attributes from user views in Dynamics CRM

If you have used an attribute in a saved view in Dynamics, and the attribute is removed from the entity, you will get the following error when you try and access the view: Whilst it is straightforward to amend the … Continue reading

Posted in Dynamics CRM | Tagged | Leave a comment

Can I get single quotes with my FetchXML, please?

“I’d like my FetchXML with double quotes, please”, said no Dynamics developer, ever. If you ever export FetchXML from the Advanced Find tool in Dynamics, you’re most likely doing this because you want to use that FetchXML in code somewhere. … Continue reading

Posted in Dynamics CRM, Uncategorized | Tagged | Leave a comment

Programmatically removing components from a MS Dynamics form or view

The ‘additive’ nature of CRM deployments means that it can be easier to add components to an instance of CRM than it is to remove them. With the additive model, even if you delete a component from your development environment … Continue reading

Posted in CI, Dynamics CRM | Tagged | Leave a comment

Formatting the output of LINQPad’s DumpContainer

LINQPad’s Dump Containers can be used as a way of outputting some data to a static place within the output pane. A good example of this would be to display a timer or counter on the screen whilst a particular … Continue reading

Posted in LINQPad | Tagged | Leave a comment

System.IO.FileLoadException and other errors in plugins deployed by CRM developer toolkit to Dynamics 2015

On creating a new plugins project for our Dynamics 2015 organisation with the latest version of the Dynamics 365 Developer Toolkit we were experiencing all sorts of errors, either on deployment or on execution. On trying to register a plugin … Continue reading

Posted in Dynamics CRM, Uncategorized | Tagged | 1 Comment

Displaying Progress using LINQPad’s Util.ProgressBar

LINQPad contains a number of very useful utilities, as documented here. One of these is the Util.ProgressBar functionality which allows you to display the progress of your script within the results pane. This can be very useful when, say, you … Continue reading

Posted in LINQPad | Tagged | Leave a comment

State-based vs Interaction-based testing in Dynamics CRM

When writing Unit Tests one can focus on two different aspects of the code under test. We can call these two types of tests ‘State-based’ and ‘Interaction-based’. The first of these concentrates on the end result achieved by the code … Continue reading

Posted in Dynamics CRM, FakeXRMEasy, Testing | Tagged , , | 1 Comment

The case of the missing xml file

Our automated deployment of a CRM Solution file started failing recently and it was quite a journey to find out what was causing the error. We automate the deployment of our CRM solutions using the Build/Release processes in Visual Studio … Continue reading

Posted in CI, Dynamics CRM | Tagged | Leave a comment

Error while loading code module: ‘Microsoft.Crm.Reporting.RdlHelper’

When trying to compile a FetchXML-based report in Visual Studio 2015 which had been developed in an earlier version of Visual Studio, we were getting the following error: Building the report, ReportName.rdl, for SQL Server 2008 R2, 2012 or 2014 … Continue reading

Posted in Dynamics CRM | Tagged | Leave a comment