MS Graph API - track permanantly deleted mail(= outlook message)

이승호 1 Reputation point
2022-10-12T01:52:05.307+00:00

Hi, is it possible track outlook message that occur two action (created and permanantly deleted) between request MS Graph API - Get messages

I found delta query, but, It seems to be can't track outlook messages when occur two action (created and permanantly deleted) between delta request.

I just want to keep track all Outlook messages, regardless of permanatly deleted messages as soon as the user receives them.

Please help me..

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

1 answer

Sort by: Most helpful
  1. HarmeetSingh7172 4,811 Reputation points
    2023-01-02T22:02:24.323+00:00

    Hello @이승호

    Thanks for reaching out.

    Delta query lets you query for additions, deletions, or updates to messages in a folder by way of a series of delta function calls. Currently, we can track outlook messages to certain types of changes (created, updated or deleted) in the delta query's response. We can optionally filter the desired type of change using a custom query option changeType. Possible values are created, updated or deleted.

    GET /me/mailfolders/{id}/messages/delta?changeType=created  
    GET /me/mailfolders/{id}/messages/delta?changeType=updated  
    GET /me/mailfolders/{id}/messages/delta?changeType=deleted  
    

    However, as per my research and understanding, there is no way we can track outlook messages when occur two actions (created and permanently deleted) between delta requests.

    For more info, please refer this documentation.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments