When I run a similar query, the response is an empty list, not the internal error you are experiencing.
Please share the request Id and the time stamp so that I can look into the logs, to find out more about the error you are experiencing.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
0
When i check with postman is working fine.
https://graph.microsoft.com/v1.0/me/events?$filter=iscancelled eq false and isorganizer ne false and (locations/Any(s:s/displayname eq 'abcd') )
When i want to get same result with Microsoft.Graph API using c#. Then giving an error.
var queryOptions = new List<QueryOption>()
{
new QueryOption("startDateTime", from.ConvertDateTimeToUtc(timeZone.WinTimeZone).ConvertDateTimeToUtcIso8601String()),
new QueryOption("endDateTime", to.ConvertDateTimeToUtc(timeZone.WinTimeZone).ConvertDateTimeToUtcIso8601String()),
};var filtering="iscancelled eq false and isorganizer ne false and (locations/Any(s:s/displayname eq 'abcd') )";graphServiceClient.Users["emailaddress"].CalendarView .Request(queryOptions) .Filter(filtertring) .GetAsync();
'Error
{"error":{"code":"ErrorInternalServerError","message":"An internal server error occurred. The operation failed."}}'
Code: ErrorInternalServerError
Message: An internal server error occurred. The operation failed.
ClientRequestId: a945d124-53f0-4466-9cb2-2ce903e8a61d
When i removed the location from the filter it works.
var filtering="iscancelled eq false and isorganizer ne false";
graphServiceClient.Users["emailaddress"].CalendarView .Request(queryOptions) .Filter(filtertring) .GetAsync();
When I run a similar query, the response is an empty list, not the internal error you are experiencing.
Please share the request Id and the time stamp so that I can look into the logs, to find out more about the error you are experiencing.