【发布时间】:2017-08-29 14:19:00
【问题描述】:
必须过滤多个参与者的事件,我不知道过滤它的正确方法。
https://graph.microsoft.com/v1.0/me/events?$filter=attendees/any(电子邮件地址:startswith(电子邮件地址/名称,'xxxxv@xxx.com'))
"location": {
"displayName": "Test"
},
"recurrence": null,
"attendees": [
{
"type": "required",
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"emailAddress": {
"name": "yyyy ",
"address": "yyy@yyy.com"
}
},
{
"type": "required",
"status": {
"response": "none",
"time": "0001-01-01T00:00:00Z"
},
"emailAddress": {
"name": "xxxx",
"address": "xxx@xxx.com"
}
},
我想获取参加者电子邮件地址为“xxx@xx.com,yyy@yy.com”的活动列表
【问题讨论】:
-
试过
https://graph.microsoft.com/v1.0/me/events?$filter=attendees/any(x: x/emailAddress/address eq 'my string')。但出现错误"'i => i.Attendees.Any(a => (a.EmailAddress == \"my string\"))' is not a supported filter expression."
标签: api odata microsoft-graph-api office365api