Code to connect CRM Organization (C#):
ClientCredentials clientCredentials = new ClientCredentials();
clientCredentials.UserName.UserName = "<Username>";
clientCredentials.UserName.Password = "<Password>";
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
IOrganizationService organizationService = new OrganizationServiceProxy(new Uri("<CRM Organisation Service URL>"),
null, clientCredentials, null);
No comments:
Post a Comment