Helper Code of Dynamics CRM 365 in C#

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);


Popular posts from this blog

Workflow Activity Input and Output Parameters and Data Types in MS CRM 2013/15/16

Get Workflow Guid in Javascript using OData query

Convert Plugin to Sandbox mode,