How to listen to new incoming mail Microsoft Graph?

Samson Marandi 26 Reputation points
2022-12-05T04:24:52.263+00:00

I'm using Microsoft Graph to get email as mentioned here https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http
Is there any way where I can listen to new incoming mail instead of calling the GET api to fetch new mail every time?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 questions
0 comments No comments
{count} vote

Accepted answer
  1. Zehui Yao_MSFT 5,871 Reputation points
    2022-12-05T06:13:57.913+00:00

    Hi @Samson Marandi , you can create a subscription to receive notifications of message data changes in Outlook.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

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.