CalendarView Graph API returns empty response for Office365 calendar

Yogesh Hole 6 Reputation points
2021-01-23T09:43:33.247+00:00

GET /me/calendar/calendarView?startDateTime={start_datetime}&endDateTime={end_datetime} API gives empty result as:

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('user%40outlook.com')/calendarView",
"value": []
}

even though there are events that exist in the calendar.
This issue observed for the Office365 account setup on Exchange 2016 server on-premise.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Pfeiffer Andreas - UCI 170 Reputation points
    2024-05-24T14:18:47.6+00:00

    Hello,

    Similar issue here.

    When digging a bit into it (called endpoint /users/account@domain.com/calendars, I found out that for the same UPN, there are 3 calendars that are set but all 3 with same id !?!

    When looking at the documentation of calendarView, I see that I can either give the UPN or the id. But since the id's are the same for all 3 calendars, how can I call the correct calendar !?!

    Please advice

    Thank you

    0 comments No comments