I have no problems getting a REST query to return the expected result set when I use a single clause-

http://website/_api/web/lists/getbytitle('MyList')/items?$filter= StartDate ge datetime'2014-01-01T00:00:00Z'

but when I try to add a second parameter

& Odata__EndDate le datetime'2013-12-31T00:00:00Z'

it ignores the second parameter. What's going wrong here?


& symbol could not be used in $filter query option expression.

Replace & with and operator, for example:

$filter=(StartDate ge datetime'2014-01-01T00:00:00Z') and (Odata__EndDate le datetime'2013-12-31T00:00:00Z')


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.