Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Can't use EventDate or EndDate when filtering calendar items using REST api

$
0
0

Hi everyone,

I'm having trouble, and I'm not the only one with filtering calendar events using the EventDate or EndDate fields.

I'm trying the following query using REST api:

/_api/web/lists/getbytitle('calendar')/items?$filter=(EventDate  ge  datetime'2013-01-26T22:00:00Z')&$select=Title,EventDate,ID

and I'm getting the following error:

The field 'EventDate' of type 'DateTime' cannot be used in the query filter expression

Anyone know how to bypass this? Is this a bug?

I already have a JavaScript ready to accept JSON, so accepting data from ListData.svc is a bad option.

Thanks,

Amir



Viewing all articles
Browse latest Browse all 7589

Trending Articles