Share via

Use $filter=end/dateTime ge doesn't work. How do I use it?

Donne 0 Reputation points
2023-06-20T09:50:43.9233333+00:00

When I don’t use $filter=end/dateTime ge, I can get the list, but when I use it, it prompts an error message:HTTP 400 Bad Request
User's image

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-06-20T17:47:51.7+00:00

    Hello Donne,

    Thanks for reaching out. You need to use the start and end date time CalenderView endpoint as follows for example:

    https://graph.microsoft.com/v1.0/users/5ce47071-d513-4833-bd80-a604a33ac3e7/calendar/calendarView?startDateTime=2017-01-01T19:00:00&endDateTime=2017-01-07T19:00:00&$orderby=start/DateTime&$select=subject,organizer

    The 'ge' and 'le' operators are no supported with List CalenderView query.

    Please refer to article https://learn.microsoft.com/en-us/graph/api/calendar-list-calendarview?view=graph-rest-1.0&tabs=http for more information on this topic.

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

    Thanks.

    Was this answer helpful?


Your answer

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