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();