如何通过Microsoft Graph通过组织者的电子邮件获取Outlook事件

时间:2018-10-18 10:24:22

标签: microsoft-graph

这是网址

https://graph.microsoft.com/v1.0/me/events?$select=subject,bodyPreview,organizer,attendees,start,end&$top=100&$filter=organizer/emailAddress/address eq 'jhon@duo.com'

这是回应

{
    "error": {
        "code": "UnsupportedEntityExpression",
        "message": "'i => (i.Organizer.EmailAddress == \"hon@duo.com\")' is not a supported filter expression.",
        "innerError": {
            "request-id": "04693e1d-b7aa-4361-9232-4287b1ae4",
            "date": "2018-10-18T10:09:46"
        }
    }
}

请给我解决方法

1 个答案:

答案 0 :(得分:0)

就像异常消息中所说的那样,您使用的查询不支持:

  

'i =>(i.Organizer.EmailAddress == \“ hon@duo.com \”)'不是   支持的过滤器表达式

您的临时解决方案/解决方法是先查询列表,然后进行内存过滤。

与此同时,您可以在UserVoice上提交功能请求。

相关问题