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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,808 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,305 Reputation points
    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.


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.