web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Does WEB API Work with CRM 2016 On premise Installation?

(0) ShareShare
ReportReport
Posted on by 583

I need some help.

I have an on premise CRM 2016 installation. I have been trying to use the CRM sample programs in order to learn Web API.

In the async Task getWebAPIVersion()method I am having an issue with the line:

HttpResponseMessage RetrieveVersionResponse = await httpClient.SendAsync(RetrieveVersionRequest);

RetrieveVersionResponse is returing a StatusCode:500, Internal Server Error.

I did a step through test and in tracing the folder for the version I do not see that physical directory on the CRM server.

I don't know what is the issue and I am wondering if the issue is with the Web API and CRM 2016.

I would appreciate any assistance on this...Thanks 

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Check your default connection string.  There needs to be a trailing slash after your org name.  The API does work on On-Prem 2016.  I am able to run the sample in my test org.

     <add name="default"   connectionString="Url=https://serverurl/org/;

  • Inogic Profile Picture
    703 on at

    You should be able to connect the OnPremise CRM using WebAPI

    You may refer this link for further assistance in your code:

    http://www.inogic.com/blog/2016/03/programming-using-webapi-through-c-in-dynamics-crm-2016/

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans