Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

OData Query

Posted on by 70

Hi!
I use OData Query to retrieve datas in CRM365.
Sample:

oUrl = ""addressserver/.../SystemUserRolesSet$select=RoleId&$filter=SystemUserId eq guid'{guidnumber}'""
$.ajax({
type: "GET",
async: false,
contentType: "application/json; charset=utf-8",
datatype: "json",
url: oUrl.toString(),
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
},
success: function (data, textStatus, XmlHttpRequest) {
oData = data.d;
},
error: function (XmlHttpRequest, textStatus, errorThrown) {
alert("erro: " + errorThrown);
}
}); ...

But OData Query work with HTTP.

Somene know how make it work with HTTPS.
Another library, technology.

*This post is locked for comments

  • Suggested answer
    joman Profile Picture
    joman 617 on at
    RE: OData Query

    Good day!

    To make oDataQuery working with https, you need:

    1. Set a certificate to IIS site - Dynamics CRM (IIS-Sites-Dynamics-Bindings-add Binding).

    2. In Deployment manager. Menu - Action - Properties - Web-address. Choose HTTPS and write address of your server.

    Then you can access throw an https (but it will no http).

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: OData Query

    Hi

    See your previous post.

    Your CRM web application is not configured as https (SSL is not applied). So, you cannot use https, either to access CRM in the browser or for OData query.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: OData Query

    Please provide the error you are getting.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans