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
    ganeshm Profile Picture
    ganeshm on at
    RE: OData Query

    u are missing " ? " before the select,it should be like this,

    oUrl = ""addressserver/.../SystemUserRolesSet?$select=RoleId&$filter=SystemUserId eq

    refer:msdn.microsoft.com/.../gg309461(v=crm.7).aspx

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

    Hi

    You are asking the same question three times.

    Please check the answers for your previous questions.

  • 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).

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans