Using Get delta API to get calendar events in a time range

Browsing Calendar 1 Reputation point
2022-06-30T23:05:24.157+00:00

Hello,

We want to call Microsoft Graph API to get calendar events in a time range.

We came across two APIs:

I am wondering about the performance / latency difference between the two APIs, especially when user has lots of calendar events. Which API do you suggest using?

Thank you in advance!

Microsoft Security Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. HarmeetSingh7172 4,826 Reputation points
    2022-09-14T23:10:50.437+00:00

    Hi @Browsing Calendar

    Hope you're doing well.

    As per documentation, List calendarView Graph API will get the occurrences, exceptions and single instances of events in a calendar view defined by a time range, from a user's default calendar. Whereas, Event: Delta returns a set of event resources that have been added, deleted, or updated in a calendarView (a range of events defined by start and end dates).

    Syncing events in calendarView is done via Delta functions. Post initial call, every subsequent delta call gets the incremental changes. This will store and sync the events locally in specified calendarView and doesn't require fetching events every time from server. Hence, this will reduce response time.
    So, based on your requirement and my understanding, I would suggest to go with Events: Delta Graph API.

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

    0 comments No comments

  2. Felix Valerio 1 Reputation point
    2022-11-02T19:29:10.953+00:00

    Event: Delta returns a set of event resources that have been added, deleted, or updated in a calendarView.

    base on last comment:

    I would like to know if it is possible to get every record on response identify with Change Type porpierty created, update and deleted??

    0 comments No comments

Your answer

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