Microsoft graph api 类型isof(';Microsoft.graph.message';)上的Microsoft graph筛选无效

Microsoft graph api 类型isof(';Microsoft.graph.message';)上的Microsoft graph筛选无效,microsoft-graph-api,Microsoft Graph Api,在尝试通过Microsoft Graph获取电子邮件消息时,我们不仅可以获取消息,还可以获取事件消息。我们希望在查询中使用 isof('microsoft.graph.message') 我们得到以下错误: { "error": { "code": "RequestBroker--ParseUri", "message": "Cast or IsOf Function must have a type in its arguments.",

在尝试通过Microsoft Graph获取电子邮件消息时,我们不仅可以获取消息,还可以获取事件消息。我们希望在查询中使用

isof('microsoft.graph.message')
我们得到以下错误:

{
    "error": {
        "code": "RequestBroker--ParseUri",
        "message": "Cast or IsOf Function must have a type in its arguments.",
        "innerError": {
            "request-id": "6ca66ac0-47d2-4742-b5d6-c8dcfe386408",
            "date": "2020-01-17T15:01:57"
        }
    }
}

是否有其他方法可以过滤掉事件消息?

如果您使用pidTagMessageClass的singleValueExtendedProperties按MessageClass进行过滤,则应该可以正常工作,例如

https://graph.microsoft.com/v1.0/me/messages/?$select=ReceivedDateTime,Sender,Subject&$Top=10&$filter=singleValueExtendedProperties%2fany(ep%3a+ep%2fid+eq+%27String+0x001a%27+and+ep%2fvalue+eq+%27IPM.Note%27)

很遗憾,没有。此支持不可用。