Browsing All Posts filed under »plugins«

CRM 2011 – plugins and isolation mode

March 13, 2013

2

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 […]

CRM 2011 – getting the state of a record and using setStateDynamicEntity

October 5, 2012

2

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 […]

CRM 2011 – in plugins only select the fields you need and not ColumnSet(true)

September 17, 2012

3

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 […]

CRM 2011 – Debugging plugins using the Plugin Registration tool

June 18, 2012

2

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 […]

CRM 2011 – Assembly must be registered in isolation

April 20, 2012

0

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 […]

CRM 2011 – Setting a state and status of an entity using a plugin

March 23, 2012

3

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 […]

CRM 4 – How to create a LookupProperty in a plugin

November 17, 2011

3

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 […]

CRM 4 – Plugin registration problems – Could not load file or assembly

October 6, 2011

3

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 […]

CRM 2011 – How to download plugins in the database to a file

September 19, 2011

3

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 […]

CRM 2011 – Rite of Passage – building the plugin registration tool

August 18, 2011

1

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 […]