I'm trying to get a webhook up and running so that Microsoft Graph can write straight to a topic on one of my FME Cloud instances. I'm using the following:
Go to https://developer.microsoft.com/graph/graph-explorer/, do a POST-request to https://graph.microsoft.com/v1.0/subscriptions using the following body:
{
"changeType": "created,updated",
"notificationUrl": "the-topic-url from Message as Subscriber Content",
"resource": "me/mailFolders('Inbox')/messages",
"expirationDateTime":"2019-02-15T18:23:45.9356913Z",
"fmetoken":"token-goes-here"
}
However, I get the following response:
{
"error": {
"code": "InvalidRequest",
"message": "Subscription validation request failed. Must respond with 200 OK to this request.",
"innerError": {
"request-id": "5b842b2b-6325-444e-890e-f9ff6eb61510",
"date": "2019-02-14T13:09:40"
}
}
}
Using Postman, I've verified that I get a 202-response if I make a POST-request to the topic URL. Is there another way that I can get a Microsoft Graph webhook up and running? I've seen that there's a web connection for MS Graph, but I don't know if there's any way for me to use that to set up the webhook.