Reputation: 2798
I'm trying to use Microsoft's Dynamics CRM API helper code to connect to an Azure CRM instance and query some entities. The code is in package Microsoft.Crm.Sdk.Samples.HelperCode
.
However, the helper code provided by Microsoft fails to compile.
Here are the errors:
Has anyone managed to solve this problem?
Upvotes: 2
Views: 104
Reputation: 22836
Probably the old project using ADAL 2.x old version but conflicting with latest ADAL 3.x version in your system.
AuthenticationResult authenticationResult = authenticationContext.AcquireToken(organizationUrl, clientcred);
Change the above line like below:
AuthenticationResult authenticationResult = authenticationContext.AcquireTokenAsync(ClientConfig.CRMOrgUrl, clientcred).Result;
Upvotes: 1