Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Query is not valid when filtering datetime in REST OData

$
0
0

I'm trying to get the items from a list "MyList". I'm using the following Url:

/_api/web/lists/getbytitle('MyList')/items?$filter=year(Created) eq 2014

But I got the exception :

{"odata.error": {"code": "-1, Microsoft.SharePoint.SPException","message": {"lang": "en-US","value": "The query is not valid."
        }
    }
}

What's the problem?

Thanks a lot.


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>