Reputation: 1
I want to subscribe for rich notifications using Microsoft graph API for calendar events. Below is the payload which I'm using to make subscription call :
{
"changeType": "created,updated,deleted",
"notificationUrl": "https://notification.com/api/webhook",
"resource": "Users('[email protected]')/events?$select=subject,start,end,organizer",
"expirationDateTime": "2018-12-06T18:23:45.9356913Z",
"clientState": "secretClientValue"
}
the response I get is:
{
"error": {
"code": "InvalidRequest",
"message": "IncludeProperties flag should be true in payload to support rich notifications.",
"innerError": {
"request-id": "b281f496-6121-40d0-9f48-452922170598",
"date": "2018-12-06T09:32:46"
}
}
}
Using the payload :
{
"changeType": "created,updated,deleted",
"notificationUrl": "https://notification.com/api/webhook",
"resource": "Users('[email protected]')/events,
"expirationDateTime": "2018-12-06T18:23:45.9356913Z",
"clientState": "secretClientValue",
"includeProperties" : true
}
I successfully created the subscription but got default data in notifications.
I have used rich notifications using outlook v2 API. But can't find any documentation regarding Microsoft Graph API.
Upvotes: 0
Views: 1178
Reputation: 86
Rich Notifications are not yet supported for Calendar events through Microsoft Graph.
We will improve the error message.
Upvotes: 2