Can Graph API be configured on a real time basis to fetch emails?

Gupta, Piyush 0 Reputation points
2024-06-16T12:00:33.27+00:00

Can Graph API be configured on a real time basis to fetch emails? If not, then, if there is a scenario where sender and receiver(sharing sensitive information e.g. Insider trading) permanently deletes an email immediately(once its read) from their mailbox, can these emails be retrieved?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Azizkhon Ishankhonov 540 Reputation points
    2024-06-17T09:55:55.11+00:00

    Hello

    I think change notifications will be the best option. You can subscribe to e-mail messages and handle them when the message is created, updated, or deleted.

    Documentation:

    https://learn.microsoft.com/en-us/graph/change-notifications-overview

    Sample Code:
    https://github.com/microsoftgraph/aspnetcore-webhooks-sample/tree/main


Your answer

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