I'm trying to list events using the Outlook Calendar REST API of an Office 365 mailbox.
Here's my request for getting all the events in 2016 that user@example.org attends:
https://outlook.office.com/api/v2.0/me/calendarview/?startdatetime=2016-01-01T00:00:00Z&enddatetime=2017-01-01T00:00:00Z&$filter=Attendees/any(a: a/EmailAddress/Address eq 'user@example.org')
This server responds with the following error:
{
"error": {
"code": "ErrorInternalServerError",
"message": "Value cannot be null.\r\nParameter name: source"
}
}
From what I can tell, this really is an internal error on their servers.
When I omit the $filter parameter or use a simpler one instead (such as Subject eq 'test') I get a valid response, so I'm guessing it has something to do with the any operator.
Is there another way to filter events by attendee, or a workaround for this?