Share via

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 Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    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.

    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.