Connect to Microsoft Dynamics CRM 2013 online using C#
In this blog, I am going to explain how to create connection with Online Microsoft Dynamics CRM and how to fetch data of CRM using C#. Fetch records from online crm entity using c#. First of all add required references and add few important namespaces : using Microsoft.Xrm.Sdk; using Microsoft.Crm.Sdk; using Microsoft.Crm.Sdk.Messages; using Microsoft.Xrm.Sdk.Query; using Microsoft.Xrm.Sdk.Client; using Microsoft.Xrm.Client.Services; using Microsoft.Xrm.Client; using Microsoft.Xrm.Sdk.Messages; Now, for creating connection with Online dynamics CRM 2013, add below code inside your class with your URL, UserName and Password of your Online Dynamics CRM . OrganizationService _orgservice = new OrganizationService(CrmConnection.Parse("Url=https://YourURLname.crmX.dynamics.com; Username=user.name@YourSolName.onmicrosoft.com; Password=YourPassword;")); Now, for retrieving records from your online CRM for any entity get the fetchXML by using AdvancedFind and use that...