Hello guys,
We are using "Microsoft.Xrm.Tooling.Connector" to connect a custom ticketing portal to CRM. Below is the code used to connect.
The IOrganizationService object is always null.
string CrmUrl = System.Configuration.ConfigurationManager.AppSettings["CrmServerUrl"]; string CrmOrgname = System.Configuration.ConfigurationManager.AppSettings["CrmOrgName"]; string CrmUserName = System.Configuration.ConfigurationManager.AppSettings["CrmUsername"]; string CrmPassWord = System.Configuration.ConfigurationManager.AppSettings["CrmPassword"]; string sDomain = System.Configuration.ConfigurationManager.AppSettings["CrmDomain"]; CrmServiceClient conn = new CrmServiceClient("Url=" + CrmUrl + "; Username=" + CrmUserName + "; Password=" + CrmPassWord + "; AuthType=Office365"); organizationservice = conn.OrganizationWebProxyClient != null ? conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
Does anyone is aware of a solution to this?
Thanks
*This post is locked for comments