How to determine the oldest date for startDateTime for List calendarView

CB 26 Reputation points
2020-11-27T16:34:40.377+00:00

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?

https://learn.microsoft.com/en-us/graph/api/calendar-list-calendarview?view=graph-rest-1.0&tabs=http

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.
10,517 questions
{count} vote

Accepted answer
  1. Shiva Keshav Varma 401 Reputation points
    2020-11-30T15:51:55.227+00:00

    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