4

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?

Community
  • 1
  • 1
dorsh
  • 23,750
  • 2
  • 27
  • 29
  • 1
    Oh, hi Dor :) Have you found a solution to this problem? For me I get a valid response, even on a complex query, when the result set is empty. When there should be an item contained in the result I get the 500 with the same error as you describe here. – Rotem Harel Oct 29 '16 at 13:44
  • Hi Rotem! What are the odds :) Unfortunately I haven't got back to this. If I remember correctly I also got a valid, empty response for an empty set so I guess nothing has changed. – dorsh Nov 01 '16 at 07:47
  • @RotemHarel Come to think about it, shouldn't you be the one to find a solution, given your current employment status ;) – dorsh Nov 02 '16 at 10:11
  • 1
    Yes, definitely. At least to find a person who will find a solution, which I did, but at the same time was looking for either work arounds or mistakes in the way I'm using it. – Rotem Harel Nov 02 '16 at 19:53
  • @RotemHarel So did you find someone? What did they say? – dorsh Nov 08 '16 at 15:27

0 Answers0