where to find a message ID of a outlook message which can be used as a input to Get message

Sudheer S Samudrala 0 Reputation points
2024-06-21T14:50:10.26+00:00

Hello, where can I find message ID in the outlook message which can be used as a input to Get Message rest call.

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

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Yakun Huang-MSFT 2,260 Reputation points Microsoft Vendor
    2024-06-24T05:45:36.1966667+00:00

    Hi @Sudheer S Samudrala

    According to the Graph API documentation, you can list all messages from a logged-in user through the /messages endpoint, which returns information about all messages, including the ID of the message, and the endpoint also supports OData query parameters, which helps you filter out the ID of the message you need more quickly.

    Below is the result of my test, which uses the $filter query parameter to filter messages by subject.

    Screenshot 2024-06-24 134325

    Hope this helps.

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