question

NoumanManzar-3511 avatar image
0 Votes"
NoumanManzar-3511 asked JadeLiang-MSFT edited

How to get the conversation via conversation Id

I want to fetch the whole conversation via conversation Id.

microsoft-graph-mail
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NoumanManzar,

Please kindly understand under Outlook tag, we mainly focus on general issues on Outlook desktop client, considering you would like to get conversation id via Graph, which may be more related to graph instead of Outlook, so I removed Outlook tag under your post, thanks for your understanding and hope your issue would be resolved soon.

0 Votes 0 ·

1 Answer

GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered

If you using the Graph SDK then you can get all the Messages in a conversation using something like

 var ConversationMessages2 = await GraphServiceClient.Users[UserId].Messages.Request().Filter("conversationid eq '" + Message.ConversationId + "'").OrderBy("receivedDateTime desc").GetAsync()
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.