none
Microsoft Graph Messages Subscription RRS feed

  • Question

  • I'm getting the error below whenever I try to create a Subscription for Office 365 Mail Messages. I have done this in another project and I'm using the same code except in the new project I'm using Azure AD v2.0 endpoints for authorization and tokens. My Access Token works for other requests through Postman but I cannot create a Subscription.

    Request:

    {
    "changeType":"created",
    "clientState":"2",
    "notificationUrl":"https://xxxxxxxx.ngrok.io/app/Office365/listen/",
    "resource": "me/mailFolders('Inbox')/messages",
    "expirationDateTime":"2018-02-15T22:20:28.9332781+00:00"
    }

    Response:

     {
      "error": {
        "code": "ExtensionError",
        "message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Internal Server Error]",
        "innerError": {
          "request-id": "5693c140-86d5-4eda-af41-2880f595b5e0",
          "date": "2018-02-14T00:14:25"
        }
      }
    }

    Wednesday, February 14, 2018 12:21 AM