MS CRM odata: Query in RelationshipQuery must be for related entity RRS feed

  • Question

  • I am using the odata api of Dynamics 2013 to retrieve some contacts from a list. This list has around 520 contacts in it.

    My call looks like this:

    .../ListSet?$select=listcontact_association&$expand=listaccount_association,listcontact_association&$filter=ListId " + filterString

    This returns me the first 50 records plus a property called __next which contains a url to retrieve the next set of items.

    But when I call the url of the next set which looks like:


    I get a 500 response with:

        "error" : {
            "code" : "-2147220989",
            "message" : {
                "lang" : "en-GB",
                "value" : "Query in RelationshipQuery must be for related entity."

    Any help is highly appreciated.

    Is the CRM odata API a beta api or it's ready for prime time?

    Thursday, October 16, 2014 2:52 PM