This error "Query options $expand, $filter, $orderby, $inlinecount, $skip and $top cannot be applied to the requested resource Dynamics CRM"
will be thrown while accessing OData query in the following format
As the expected result is one record but the OData expected a result set and tries to extract data from it. The above one works fine if the result set expected is more than 1
If the expected result is one record better to use in the following way
"/XRMServices/2011/OrganizationData.svc/" + odataSetName + "(guid'" + id +"')",
Hope this helps if you stuck in that error
will be thrown while accessing OData query in the following format
"/XRMServices/2011/OrganizationData.svc/" + odataSetName + "$select=fieldi1,field2&$filter=entityid
eq guid'" + selectedID + "'";
As the expected result is one record but the OData expected a result set and tries to extract data from it. The above one works fine if the result set expected is more than 1
If the expected result is one record better to use in the following way
"/XRMServices/2011/OrganizationData.svc/" + odataSetName + "(guid'" + id +"')",
Hope this helps if you stuck in that error
No comments:
Post a Comment