Thursday, September 13, 2018

Quick tip: CRMServiceClient vs CRMConnection

Starting with Dynamics 365 build number 9.*  you must use the XRM Tooling assemblies and the CRMServiceClient instead of the CRMConnection class – see for more information.
First you will need add the nuget package Microsoft.CrmSdk.XrmTooling.CoreAssembly (Core assembly required to develop managed code using the Xrm Tooling Connector)

Afterwards, there are a number of ways that you can instantiate a CRMServiceClient object – see  Use CrmServiceClient constructor to connect to Dynamics 365 or Use connection strings in XRM tooling to connect to Dynamics 365

No comments: