Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: RE: How to create CRM service in ASP.Net Web API

$
0
0
Hi Naveen, Install the following 2 packages: Install-Package Microsoft.CrmSdk.CoreAssemblies -Version 9.0.0.5 Install-Package Microsoft.CrmSdk.XrmTooling.CoreAssembly -Version 9.0.0.5 Once you have them installed, the following lines of code should be enough for you to connect to CRM. (Online or OnPrem) CrmServiceClient devCrmConn = new CrmServiceClient(ConfigurationManager.ConnectionStrings["DevCRM"].ConnectionString); IOrganizationService _orgService = devCrmConn.OrganizationServiceProxy; I am reading from the app.config, where I have defined my Connection String as:

Viewing all articles
Browse latest Browse all 154803

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>