locked
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:

    /ListSet(guid'87f2a0af-a142-e411-93fa-000c29482c88')/listcontact_association?$skiptoken=1,%27contactid%27,%27%7BDE31A5CF-A042-E411-93FA-000C29482C88%7D%27,%27%7B79756A95-9E42-E411-93FA-000C29482C88%7D%27

    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