Share via

Internal server error when calling CalendarView Graph API with filter

17550974 11 Reputation points
2020-12-30T21:33:36.85+00:00

Hi,
I'm trying to use the calendarview Graph API and likely experience a bug.

The following query works:

https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-12-15T00:00:00&endDateTime=2021-01-15T00:00:00&$filter=categories/any(c:c eq 'A')

Whereas the following query fails (I added the "or" condition at the end):

https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-12-15T00:00:00&endDateTime=2021-01-15T00:00:00&$filter=categories/any(c:c eq 'A') or categories/any(c:c eq 'B')

According to the API documentation, the query should work, but I'm receiving an Internal Server Error response. Also, the following forms should be supported but lead to an error:

https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-12-15T00:00:00&endDateTime=2021-01-15T00:00:00&$filter=categories/any(c:c eq 'A' or c eq 'B')

https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-12-15T00:00:00&endDateTime=2021-01-15T00:00:00&$filter=categories/any(c:c in ('A', 'B'))

Please advise if this is indeed a bug or if I'm using the API incorrectly. Thank you

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,551 Reputation points Moderator
    2020-12-31T20:30:26.353+00:00

    Hello, an internal case has been created for this issue, we will come back to you as soon as we get an update.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.