首页 > 解决方案 > 无法订阅 MS Graph 中的丰富通知

问题描述

如何在 MS Graph 中创建具有丰富通知的订阅?

发布https://graph.microsoft.com/v1.0/subscriptions

{
    "resource": "users/{email}/messages?$select=hasAttachments",
    "changeType": "created",
    "clientState": "415e99b4-73af-454e-93b5-00eb6c3082b9",
    "notificationUrl": "https://229c8207.ngrok.io/Notification/Listen",
    "includeProperties": true,
    "expirationDateTime": "2019-01-16T22:21:56.3942423+00:00"
}

预计:202 已创建

实际:400 错误请求

{
    "error": {
        "code": "InvalidRequest",
        "message": "Microsoft.Exchange workload is not enabled for rich notifications.",
        "innerError": {
            "request-id": "7e03b3c9-aa49-4222-b7a7-5fddebc82327",
            "date": "2019-01-16T16:47:24"
        }
    }
}

标签: microsoft-graph-apiwebhooks

解决方案


“丰富的通知”尚未通过 Microsoft Graph 启用。我们正在努力,并将添加一些令人兴奋的新功能。我们目前无法提供 ETA,但它是此功能区域的首选。


推荐阅读