I had a frustrating afternoon the other week, when I wrote a simple plugin but the plugin was throwing an error in the first line of code. The plugin compiled without problem. In the end I took out all the code except for some logging statements but it was still throwing an error. This particular […]
October 5, 2012
This week I was trying to trigger a workflow when a User record was disabled/enabled. I haven’t written a workflow triggered by a change of state before and it is a little bit unusual. Like many organisations we have Users and then replicate the users in a company and contacts. I was hoping to trigger […]
September 17, 2012
usually when I am first developing some code in a plugin I will select all columns in the query e.g. account Account= (account)service.Retrieve(account.EntityLogicalName, id, new ColumnSet(true)); Once I know the code is working I will change this to pass only retrieve the fields I need because this makes the code run quicker and it’s basically […]
June 18, 2012
I was having a bit of a nightmare debugging my plugins. The plugin was working in my test case but when I deployed it and tried to run it from CRM, I was getting errors. I had tried to setup remote debugging which I have done before but this time I was having problems because […]
April 20, 2012
I got an error whilst trying to register a plugin, saying the assembly must be registered in isolation. I found out something which I had forgotten, basically only Deployment Administrators can register plugins which do not run in isolation mode (e.g. in the sandbox). The user I was using although was a System Administrator in […]
March 23, 2012
I had created a charge entity. I was creating charge entities of certain values when certain things had happened on regarding cases. When a case was created it created a charge entity linked to the case, account and product etc for a certain value. Then when other status were reached a workflow would fire off […]
November 17, 2011
When Microsoft wrote the api for CRM 4 someone in their infinite wisdom thought it would be a great idea to have lots of CRM variables and lots of property variables. This meant that developers had to spend hours casting variables to and from the CRM variables. After a while you do get the hang […]
October 6, 2011
I tried registering a plugin in CRM 4 and it was hard work. Firstly I had to build the Plugin Registration Tool, WHY??? I then initially tried to register my plugin, only to find I had not implemented the plugin interface. I tried to compile the simple walkthrough in the SDK which had compile errors […]
September 19, 2011
I recently had the problem where I needed to see what plugin or the code in a plugin to see if it was different from the latest code I had on my machine. When you have to pick up projects which other people have worked on, it can be difficult to know what code is […]
August 18, 2011
One of the things I never have quite understood everyone has to build the plugin regristration tool. It’s like some kind of CRM developers rite of passage and a confusing way to get started in the CRM development world. I guess the reason must be something to do with legal liability or some trifling matter. I have […]
March 13, 2013
2