Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Change Notification from Microsoft Graph

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

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.

Thanks

like image 707
MGDev Avatar asked Nov 27 '25 11:11

MGDev


1 Answers

There's is absolutely no guarantee that an event in the graph will result in a single notification.
This is due to backend service architecture, data replication, data structures and more.
What you should do is keep tracks of the change key as outlined in this answer.

like image 133
baywet Avatar answered Nov 28 '25 23:11

baywet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!