问题
I need to find conversationId for email exchange between two user - John and Harry. In my scenario:
- John sends message to Harry.
- I have email metadata from email that John has sent, e.g. converstationId, internetMessageId, messageId (m$ graph user specific).
- Now I would like to reply from Harry. Unfortunately the converstionId of Harry is different then John, so I can't use it. What I would like to do is to find email message object in Harry's inbox and use his conversationId.
- With valid converstationId, I would be able to call replyAll on Harry behalf.
Can I make call like: GET /me/messages?$filter=internetMessageId eq abcd
回答1:
Yes, you can make a GET call in the form you suggest - have you tried it? The graph API supports standard ODATA query parameters.
On the graph API explorer, the following call works for me:
https://graph.microsoft.com/v1.0/me/messages?$filter=internetMessageId eq '<1430948481468.34600@THCIE7Dev2.onmicrosoft.com>'
来源:https://stackoverflow.com/questions/44556311/microsoft-graph-api-find-message-by-internetmessageid