How to determine the oldest date for startDateTime for List calendarView

CB 26 Reputation points

We are developing an app to integrate Outlook calendars, is there a way to find out the farthest date I can supply to List calendarView for the parameter startDateTime? our aim is to have the Users manage all events in our app and and I frequently get date range errors and right now I just hard-coded it to fetch from 2016 onward.

It may also apply to how far ahead in the future I can supply to the parameter endDateTime?

Thank you and appreciate the help.

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

Accepted answer
  1. Shiva Keshav Varma 406 Reputation points

    Use me/calendar/events?$orderby=start/dateTime and get the first record dateTime in Start. From there you can use that dateTime in /calendarview endpoint.

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful