SOLVED

Graph API to search calendar events by organizer name

Copper Contributor

Hello and Happy New Year all,

I have been using calendarview to search for calendar events instead of just events because calendarview shows both recurring and singleinstance events which is great.
However, I have trouble searching for organizer name using organizer/emailAddress/name like below:

 

 

 

$api = "https://graph.microsoft.com/v1.0/users/$upn/calendarView?startDateTime=2023-01-15T20:00:00Z&endDateTime=2023-01-26T20:00:00Z&filter=contains(organizer/emailAddress/name,'John Doe')&count=true&orderby=start/DateTime"

 

 

graph.microsoft.com/v1.0/users/$upn/calendarView
?startDateTime=2023-01-15T20:00:00Z
&endDateTime=2023-01-26T20:00:00Z
&filter=contains(organizer/emailAddress/name,'John Doe')
&count=true
&orderby=start/DateTime"

I received 400 Bad Request for the above URL when invoking it using REST.

Can someone please give me a helping hand?

1 Reply
best response confirmed by John_Lee2025 (Copper Contributor)
Solution
I opened a ticket with Microsoft.
The support said it is currently not possible to use filter contains for organizer/emailaddress/name.
Meanwhile, use &filter=organizer/emailAddress/name eq 'John Doe',
1 best response

Accepted Solutions
best response confirmed by John_Lee2025 (Copper Contributor)
Solution
I opened a ticket with Microsoft.
The support said it is currently not possible to use filter contains for organizer/emailaddress/name.
Meanwhile, use &filter=organizer/emailAddress/name eq 'John Doe',

View solution in original post