I would like to remove use of CRM 2011 service endpoints and instead of that i want to use CRM 2016 new web api end points for my console application to connects to CRM 2016 online/IFD/AD.
we want that if user pass new web api url for connection string, we will retrieve discovery/Iorganization service from that and pass to app.config for connection and use that to request CRM operations.
could it be possible to find/retrieve Iorganization service(SOAP) of an CRM organization from web API service(REST).
*This post is locked for comments
Hi
I know its very old post, but for the sake of other interested people out there - here is a blog post with detailed steps on how to connect to Dynamics 365 web api in a console application (c#) .. ansrikanth.com/.../connect-to-dynamics-crm-365-webapi-from-console-application
I tried your suggestion.
we can download complete solution from here
code.msdn.microsoft.com/CRM-Web-API-Basic-27fcbf2e
though I am getting REST response as unauthorized each time.
here's the code
HttpResponseMessage createResponse1 =
await httpClient.SendAsync(createRequest1);
beside from this my connection string is
<add name="default" connectionString="Url=https://<MyIFDCRMURL>/; Username=username; Password=password; Domain=domain;" />
could it be possible if you can give a try and suggest any mistake we are making.
Follow below link
Hi,
You can carry on using the organizationservice without worrying about the new web api endpoint. The SDK will be changed in the future to call the new web api rather than doing Soap calls
hth
Joe
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156