Event Delta: get events from all calendars

FNU LNU 0 Reputation points
2023-01-18T15:25:46.53+00:00

According to the documentation, when requesting delta, events are returned only from the user's primary calendar. Is it possible to get events from all calendars in Delta query?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,296 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,526 Reputation points
    2023-01-18T22:09:31.3333333+00:00

    Hello,

    To get all events from any user's calendars you can use Client Credential flow (Application Permissions) which gives App only token and use it to query all calendars using below call.

    https://graph.microsoft.com/v1.0/users/{userID}/calendars
    

    and then use the calendarid's and pull the events by using the below call for each calendar_id.

    https://graph.microsoft.com/v1.0/users/{userId}/calendars/{calendarID}/events
    

    Currently, there is no direct call to get all events from all the calendars as of now. There is already a feature request raised in the Microsoft Graph Feature Request Forum, please upvote it so that it may be implemented in the future.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments