Forum Discussion
John_Lee2025
Jan 26, 2023Copper Contributor
Graph API to search calendar events by organizer name
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?
- 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 Reply
- John_Lee2025Copper ContributorI 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',