none
500 Error when accessing Microsoft Graph API using multiple odata filters RRS feed

  • Question

  • I'm pulling calendar events from the MS graph api.  I'm using an odata filter to pull only events that were modified recently, and are not recurring, like so:

        https://graph.microsoft.com/v1.0/me/calendar/calendarView
                ?startDateTime=2016-05-01T00:00:00+0000
                &endDateTime=2026-09-30T19:46:54+0000
                &$filter=lastModifiedDateTime gt 2016-09-16T19:33:11Z and type eq 'singleInstance'

    (It gets url encoded, of course)

    This returns the following 500 response:

        variable 'x' of type 'Microsoft.Exchange.Entities.DataModel.Calendaring.Event' referenced from scope '', but it is not defined

    This error goes away if I remove either the `lastModifiedDateTime` or `type` filters.  One filter works, but when put together, and when the syntax is seemingly correct, I get that error.

    Is this an error with the Graph api? Or am I doing something stupid?  I see this in the beta version as well.  Any help is appreciated, because this is slowing down page load time by several seconds, and stopping our calendar pull from working.
    Monday, October 3, 2016 7:22 PM

All replies