CRM 2016 SDK does not have "microsoft.xrm.client.dll" . We can now use "Microsoft.Xrm.Tooling. Connector.dll" instead of "microsoft.xrm.client.dll" .
Sample Code
Addreference
Sample Code
Addreference
Microsoft.IdentityModel. Clients.ActiveDirectory.dll
Microsoft.Xrm.Tooling. Connector.dll
public IOrganizationService creatOgraservice()
{
String ConnectionString = Config._CRMservice;
CrmServiceClient conn = new Microsoft.Xrm.Tooling. Connector.CrmServiceClient( ConnectionString);
_org = (IOrganizationService)conn. OrganizationWebProxyClient != null ? (IOrganizationService)conn. OrganizationWebProxyClient : (IOrganizationService)conn. OrganizationServiceProxy;
return _org;
}
No comments:
Post a Comment