Does MS graph api /messages support get mail by NetworkMessageId?

Jiawei Tang 0 Reputation points Microsoft Employee
2023-11-15T13:52:44.14+00:00

What parameters are supported as filters? Is it only the existing fields in the response object?

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

1 answer

Sort by: Most helpful
  1. Saman Guruge-MSFT 80 Reputation points Microsoft Vendor
    2023-11-18T16:38:55.81+00:00

    The Microsoft Graph API does not directly support getting mail by networkMessageId. However, you can use the internetMessageId to find a message.

    Please refer the below links for more information.

    https://stackoverflow.com/questions/44556311/microsoft-graph-api-find-message-by-internetmessageid

    Here is an example of how you can make a GET call:

    GET /me/messages?$filter=internetMessageId eq '<1430948481468.34600@THCIE7Dev2.onmicrosoft.com>'
    

    Please note that you must URL encode the internetMessageId.

    For example:

    GET /me/messages?$filter=internetMessageId eq '%3C1430948481468.34600%40THCIE7Dev2.onmicrosoft.com%3E'
    

    Remember that the message ID may change if a message is moved or altered.


    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly.

    If you thought this post was helpful, please give it a Thumbs Up.

    0 comments No comments

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.