Getting ErrorInternalServerError when fetching calendar events with certain filter

Niels 0 Reputation points
2024-10-18T14:47:28.1866667+00:00

I am getting a 500 Internal Server Error when trying to GET my calendarView.

Request:

GET https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/calendarView?startDateTime=2024-10-16&endDateTime=2024-10-18&$top=1000&$filter=isCancelled eq false and (sensitivity eq 'normal') and responseStatus/response ne 'declined'

Response:

{
    "error": {
        "code": "ErrorInternalServerError",
        "message": "An internal server error occurred. The operation failed."
    }
}

The error only seems to appear when I add this part to the filter: responseStatus/response ne 'declined' although it is only together with the other filters that it fails. By itself that filter works fine...

Any idea what is wrong?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,483 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 10,555 Reputation points Microsoft External Staff
    2024-10-21T06:55:14.4333333+00:00

    Hello Niels,

    Thank you for reaching out to Microsoft Support!

    After a query, a similar case was found, using the extended attribute pidlidresponsestatus, which was tested to be effective for filtering responseStatus for events, but you can also test this method for calendarView, which is not used by CalendarView. There is currently no other way to filter the responseStatus property, so you can give feedback here.

    Hope this helps.

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


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.