Graph API Calendar View: Validating Delta Token on Success and Handling Incorrect Responses

Sherin Josephin 0 Reputation points
2024-09-04T07:19:49.3466667+00:00

According to the documentation at https://video2.skills-academy.com/en-us/graph/api/event-delta?view=graph-rest-1.0&tabs=http, I am using the calendar view endpoint to query delta changes with the delta token that was previously returned.

However, despite receiving a success status code, I am not seeing any updated or newly created events at times. Therefore, I need to use startDateTime and endDateTime to query the calendar view instead.

I have reviewed the limitations of using delta tokens at https://video2.skills-academy.com/en-us/graph/delta-query-overview#synchronization-reset, and I am unsure how to verify the validity of the delta token when a success status is returned.

Please let me know if there is a specific period during which I should use startDateTime and endDateTime before switching to the delta token. Any guidance on this would be greatly appreciated

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

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 4,160 Reputation points Microsoft Vendor
    2024-09-05T07:09:50.5033333+00:00

    Hi @Sherin Josephin

    Yes, the startDateTime and endDateTime parameters are required when you first access the delta endpoint, and the request returns a set of event resources added, deleted, or updated within the event range defined by the start and end dates.

    In response, $deltatoken or $skiptoken is returned. The URL of the two parameters can be used for subsequent query.

    For details, see the example in this document.

    By the way, the beta version can perform incremental queries on all events in the calendar without providing start and end ranges.

    User's image

    Hope this helps.

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


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.