Forum Discussion
finrodFelagund
May 20, 2021Copper Contributor
Receiving notification for deleted non series-master events
Hello, Is it possible to have an information about a deleted occurrence in a series, using the Graph API ? Or is the only solution to retrieve the series-master, fetch all occurrences and find ...
Allen
Community Manager
May 21, 2021Hi,
Sorry which product does this relate to?
Sorry which product does this relate to?
finrodFelagund
May 22, 2021Copper Contributor
This relates to the Microsoft Graph API. In particular to following issue.
1) I subscribe to receive event resource notifications (https://docs.microsoft.com/en-us/graph/api/resources/webhooks?view=graph-rest-1.0).
2) I create a repeating appointment in Outlook.
3) I remove one of the recurrences.
4) I receive a notification for the series master event that an update occurred.
5) If I call the /instances endpoint (https://docs.microsoft.com/en-us/graph/api/event-list-instances?view=graph-rest-1.0&tabs=http) to see what the update is about, I cannot see that removed event as an exception. Simply it is removed from the response.
So the only solutions seems to be to save all the occurrences on our end and than if an update happens to compare them one by one with the occurrences in the instances response and see which occurrence is deleted if any. Is there a better way than this?
1) I subscribe to receive event resource notifications (https://docs.microsoft.com/en-us/graph/api/resources/webhooks?view=graph-rest-1.0).
2) I create a repeating appointment in Outlook.
3) I remove one of the recurrences.
4) I receive a notification for the series master event that an update occurred.
5) If I call the /instances endpoint (https://docs.microsoft.com/en-us/graph/api/event-list-instances?view=graph-rest-1.0&tabs=http) to see what the update is about, I cannot see that removed event as an exception. Simply it is removed from the response.
So the only solutions seems to be to save all the occurrences on our end and than if an update happens to compare them one by one with the occurrences in the instances response and see which occurrence is deleted if any. Is there a better way than this?