Share via

Microsoft Graph api webhook for emails

Ashok Kumar 20 Reputation points
2026-01-22T18:40:31.9766667+00:00

in microsoft subscription for webhook i'm getting multiple notification for one mail

i have subscription for me/mailFolders('Inbox')/messages/ and i have subscription for me/mailFolders('sentItems')/messages/

please let us know

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

AI answer

2026-01-22T18:40:40.48+00:00

When using Microsoft Graph API webhooks for email subscriptions, it is possible to receive multiple notifications for a single email event. This can occur due to the way notifications are structured and delivered. Each subscription you create for different folders (like me/mailFolders('Inbox')/messages/ and me/mailFolders('sentItems')/messages/) can trigger notifications independently based on changes in those specific folders.

If an email is moved or copied between folders, or if it is modified in any way, you may receive notifications for each relevant subscription. Additionally, if multiple changes occur in quick succession, you might receive several notifications in a single batch.

To manage this, you can implement logic in your application to handle duplicate notifications by tracking the unique identifiers of the emails or changes you have already processed. This will help ensure that your application does not react to the same change multiple times.


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.