我想过滤 a 的location
属性event
,更具体地说是displayName
:
"location": {
"displayName": "Conference Room - Baker",
"locationType": "default",
"uniqueId": "Conference Room - Baker",
"uniqueIdType": "private"
}
我可以根据subject
使用过滤:
/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
上面的查询似乎可以过滤主题,但是当我尝试过滤时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
我收到以下错误:
查看文档,location
应该是可过滤的: