Microsoft Graph API - find message by internetmessageid

这一生的挚爱 提交于 2019-12-13 07:38:25

问题


I need to find conversationId for email exchange between two user - John and Harry. In my scenario:

  1. John sends message to Harry.
  2. I have email metadata from email that John has sent, e.g. converstationId, internetMessageId, messageId (m$ graph user specific).
  3. 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.
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!