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

Jiawei Tang 0 Reputation points Microsoft Employee

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.
9,136 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Saman Guruge 0 Reputation points Microsoft Vendor

    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.

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

    GET /me/messages?$filter=internetMessageId eq '<>'

    Please note that you must URL encode the internetMessageId.

    For example:

    GET /me/messages?$filter=internetMessageId eq ''

    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