I would like to filter on the location
property of an event
, more specifically the displayName
:
"location": {
"displayName": "Conference Room - Baker",
"locationType": "default",
"uniqueId": "Conference Room - Baker",
"uniqueIdType": "private"
}
I can filter based on the subject
using:
/me/calendarview?startdatetime=01-01-2019&enddatetime=12-31-2019&$filter=(isorganizer eq true) and startsWith(subject,'Project')&$top=100&$select=subject,organizer,attendees,start,end,location&$orderby=start/dateTime
The above query seems to work to filter on the subject but when I try to filter on location/displayName
:
/me/calendarview?startdatetime=01-01-2019&enddatetime=12-31-2019&$filter=(isorganizer eq true) and startsWith(location/displayname,'Conference')&$top=100&$select=subject,organizer,attendees,start,end,location&$orderby=start/dateTime
I get the below error:
Looking at the documentation, location
should be filterable: