Search code examples
dynamics-crm-2011dynamics-crm

how to update classes for update roll up 18


I have to prepare the project for crm 2011's Update RollUp 18. From what I understand, from now onward the Micrososft.CRM.SDK dll is not supported anymore, thus I have removed it from my project. As one would expect, a lot of "could not be found" errors appeared because of the removal. For the code bellow, I have ".. Property could not be found.." and "..StringProperty could not be found .." .

   public class ExtMergeName : ExtPropertyBase, ICrmString
    {
        public Property GetValue()
        {
            return CrmStringObject;
        }

        public StringProperty CrmStringObject
        {
            get
            {
                return (StringProperty)ReturnStringProperty();
            }
        }

What can I replace them with?


Solution

  • You are showing a snippet of Dynamics CRM 4.0 code. This is supported in Dynamics CRM 2011, up to the most recent Rollup Update. Support for CRM 4.0 is removed in Dynamics CRM 2013.

    When your goal is to upgrade to CRM 2011 only, you can keep your VS projects as is, i.e. referencing assembly microsoft.crm.sdk.dll.

    When you are planning to continue upgrading to CRM 2013 or CRM 2015, you need to rewrite your CRM 4.0 code. (Plugins, workflow activities, Javascript, external components accessing the CRM end points.)

    More information about the programming model of Dynamics CRM 2011 and how to upgrade from CRM 4.0 can be found on MSDN:

    Introduction to Programming Models for Microsoft Dynamics CRM

    Summary of Changes Between Versions