How to get the conversation via conversation Id

Nouman, Manzar 1 Reputation point
2021-06-22T14:35:57.037+00:00

I want to fetch the whole conversation via conversation Id.

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Glen Scales 4,446 Reputation points
    2021-06-22T23:40:51.687+00:00

    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()
    

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.