question

CB-2593 avatar image
1 Vote"
CB-2593 asked ·

How to determine the oldest date for startDateTime for List calendarView

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://docs.microsoft.com/en-us/graph/api/calendar-list-calendarview?view=graph-rest-1.0&tabs=http

Thank you and appreciate the help.

microsoft-graph-calendar
· 5
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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.

1 Vote 1 ·
CB-2593 avatar image CB-2593 ShivaKeshavVarma-2446 ·

Thank you, will definitely try this out, appreciate the reply.

0 Votes 0 ·

Let me know if that helped you or not.

0 Votes 0 ·
Show more comments

1 Answer

ShivaKeshavVarma-2446 avatar image
1 Vote"
ShivaKeshavVarma-2446 answered ·

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)

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.