Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Dynamics CRM from 2011 to 2016

With little knowledge of CRM, we were tasked with exposing data and other functionality from CRM 2011. We developed a RESTful wrapper that allows other developers to leverage it in their apps. Some example endpoints might have been:

API/v2/Accounts(someguid)
API/v2/Lead/Create {json object}
etc

This application needs to be upgraded to support dynamics 2016. We fired up our 2011 app, and simply changed a config variable to point to a 2016 instance. So far we haven't been able to do anything because right after the second line below:

        var context = new XrmServiceContext(_organizationService);

        var crmUser = (from systemUser in context.SystemUserSet
                       where systemUser.DomainName == user.DomainUserName
                       select systemUser).FirstOrDefault();

I get authentication failed exceptions:

enter image description here

Is this indeed a known authentication issue when upgrading from 11 to 16, or am I missing something?

like image 480
Alex Gordon Avatar asked Mar 26 '17 02:03

Alex Gordon


People also ask

What is the difference between MS CRM 2016 and Dynamics 365?

In 2016, Microsoft replaced Dynamics CRM with Dynamics 365, a fully rebranded product specifically designed for customer engagement. Dynamics 365 is a combined CRM and ERP product that includes full Dynamics AX suite for ERP and the Business Edition includes the financial suite built from Dynamics NAV.

What is the latest version of Dynamics CRM?

We have published the 2021 release wave 2 plans for Dynamics 365, a compilation of new capabilities that will be released October 2021 through March 2022. The 2022 release wave 2 plans will be provided once the documentation is ready.

What is a benefit to upgrading to Dynamics 365 supply chain management?

Access to valuable integrations Smooth integrations to these vital business systems and applications further enhances productivity, especially if your business' supply chain features several Microsoft solutions. This means a simplified integration, shared user intelligence and a friction-free experience.


1 Answers

There have been countless Authenticate Changes between CRM 2011 and 2016. The SDK should handle all of these issues for you, fairly seamlessly.

Download the latest version from https://www.microsoft.com/en-us/download/details.aspx?id=50032, and update any of Microsoft.Xrm.* dlls that you are referencing in your project.

If you're using Nuget, you could add these instead:

  • Microsoft.CrmSdk.Extensions (7.1.0.1 - this contains the older connection method to CRM. It will be going away, but for now, is still compatible)
  • Microsoft.CrmSdk.Deployment (8.2.0.2)
  • Microsoft.CrmSdk.Workflow (8.2.0.0) --> This one should actually be optional.

Once you've updated your references, rebuild, and retry.

like image 102
Daryl Avatar answered Oct 03 '22 02:10

Daryl