How to apply filter on message unique id in microsoft graph api

Dhage, Endraja (CIB Tech, IND) 0 Reputation points
2023-06-08T11:43:54.4766667+00:00

How to apply filter on message unique id in microsoft graph api

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

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-06-14T18:15:55.4466667+00:00

    Hello Dhage, Endraja (CIB Tech, IND),

    Thanks for reaching out. Please provide info on which unique message id your are referring to, Internet message id, id, etc? The id field does not support filtering. If you want to search the internet message id you can use the below filter example:

    https://graph.microsoft.com/v1.0/me/messages?$filter=internetMessageId eq 'Message_Id_Including_Brackets'

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

    Thanks


  2. CarlZhao-MSFT 37,296 Reputation points
    2023-06-15T07:37:52.02+00:00

    Hi @Dhage, Endraja (CIB Tech, IND)

    The property id does not support filtering for List messages.

    You should retrieve a specific mail using the id (message unique id) through Get message.

    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.

    0 comments No comments