Forum Discussion
Send information from teams app to user
Hey all
I have a form in my teams app. Information entered into the form should be sent to a user in Teams.
What would be the best way to do this? I've looked into bots and the graph api but I'm not sure which solution fits best?
Thanks!
first you can use people picker to get aad id of member to send
Integrate People Picker - Teams | Microsoft Docs
and use graph api to creat chat and send message with that member
Create chat - Microsoft Graph v1.0 | Microsoft Docs
Thanks,
Nivedipa
-----------------------------------------------------------------------------------
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.
- Nivedipa-MSFTMicrosoft
JulianTrei - Could you please share following details:
1. Where are you filling the form ? in tab or bot ?
2. Where you have to send the information ? in one-one chat or another user ?- JulianTreiCopper ContributorI have a html form in a tab and want to send the information to one-on-one chat.
Right now I have to create a channel for each person who could be a recipient, create an incoming webhook for each channel and save the webhook url to our CMS. This was only I hotfix I implemented a week ago but since the number of potential recipients is growing I need to find a solution to handle this.- Nivedipa-MSFTMicrosoft
first you can use people picker to get aad id of member to send
Integrate People Picker - Teams | Microsoft Docs
and use graph api to creat chat and send message with that member
Create chat - Microsoft Graph v1.0 | Microsoft Docs
Thanks,
Nivedipa
-----------------------------------------------------------------------------------
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.