Hi All,
We are using "Microsoft.Xrm.Tooling.Connector" to connect to CRM. Below is the code used to connect. Always IOrganizationService is null.
string connectionString = "Url=xxxxxxxxxxxxx.crm.dynamics.com; Username=xxxxxxxxxxxx; Password=xxxxxxxxxxxxxxxxx; authtype=Office365"; CrmServiceClient conn = new CrmServiceClient(connectionString); IOrganizationService _orgService = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
Does anyone aware of the solution to this?
Thanks,
Srinivasa Rao Asapu