Multiple Change Notification from Microsoft Graph

I am trying to receive change notifications from Microsoft Graph whenever an event is updated (created, deleted, or updated).

I have successfully managed to create subscriptions. The URL that receives the notifications is of an Azure Function. However, whenever I create or delete an event, the Graph sends multiple notifications for one specific change.

As mentioned in the documentation https://learn.microsoft.com/en-us/graph/webhooks, I am sending back 202-Accepted status code to the Graph as soon as I receive the change notification.

return new StatusCodeResult(202);

This is supposed to stop any further notifications from Graph. However, I still receive 2 to 4 notifications for a specific change.

I couldn't figure out what else I can do to limit the number of notifications to just one per change. Any help/suggestion would be highly appreciated.
Was this page helpful?