Forum Discussion
narita1234
Apr 23, 2024Copper Contributor
How to send a message to a specific user
I want to send a message to a specific user from external service using the user ID. In the sample code, I can use "getPagedInstallations" to loop through all users. ----------------------------...
Prasad_Das-MSFT
Microsoft
Apr 23, 2024narita1234 -
You can send a new chatMessage in the specified chat using this API.
Send message in a chat - Microsoft Graph v1.0 | Microsoft Learn
This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
If you want to create a new chat you can use below API:
Create chat - Microsoft Graph v1.0 | Microsoft Learn
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.