Forum Discussion

finrodFelagund's avatar
finrodFelagund
Copper Contributor
May 20, 2021

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 the one who has been deleted by comparing the result with the data stored on our side?

I've subscribed to change notifications and it works great if you get an update on an occurrence, e.g. a changed start time for an occurrence. In that case when you call /instances you correctly get an exception for that specific occurrence.

On the other hand if you delete an occurrence there is no exception when you call /instances. The corresponding occurrence json object is simply removed from the JSON response in that case. This is not really handy when you get an update. How do you know which occurrence is to be removed? Only way seems to re-import everything. Do you have better suggestions?


Thank you for your time.



  • Allen's avatar
    Allen
    Icon for Community Manager rankCommunity Manager
    Hi,

    Sorry which product does this relate to?
    • finrodFelagund's avatar
      finrodFelagund
      Copper 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?
      • Berni655's avatar
        Berni655
        Copper Contributor

        We are on the same page, now we just cancel by comparison with our DB . What I really don't understand is why is there a parameter named 'isCancelled' . Since, whenever someone cancels or deletes an event, it will simply be removed from the response. The logic procedure would be to simply set 'isCancelled' as true, at least for the update hook that this action causes.

Resources