Forum Discussion
I need to send an individual message to a user from conversation-id using graph api
- Mar 25, 2022
ashuuas -If you know the user id and chat id of sender. You can use the following api to get the details of receiver.
GET https://graph.microsoft.com/v1.0/chats/19:b8577894a63548969c5c92bb9c80c5e1@thread.v2?$expand=membersRef Doc:-https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-1.0&tabs=http#example-2-list-all-chats-along-with-the-members-of-each-chat
HThanks for replySayali-MSFT
yes i can send message using this endpoint but my pain is that i want to know the user name or userid before sending message .
example i can send message using this endpoint through conversationId but should know the person to whome i am sending messages also.
ashuuas -If you know the user id and chat id of sender. You can use the following api to get the details of receiver.
GET https://graph.microsoft.com/v1.0/chats/19:b8577894a63548969c5c92bb9c80c5e1@thread.v2?$expand=members
Ref Doc:-https://docs.microsoft.com/en-us/graph/api/chat-list?view=graph-rest-1.0&tabs=http#example-2-list-all-chats-along-with-the-members-of-each-chat