Forum Discussion
Open an Existing Group Chat via URL or Deep Link
Hi, use this and add the parameter topicName https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links#deep-linking-to-a-chat
Edit, worked just fine when I tried.
Ex.
https://teams.microsoft.com/l/chat/0/0?users=frodo@shire.com,sam@shire.com&topicName=Mordor
- mt7708Sep 13, 2021Copper Contributor
ChristianJBergstrom I should have mentioned this. We'd like to use these chat rooms with open ended users. Mean that the room is used over and over by responders of an incident and the responders vary from chat to chat. We plan to have a pool of rooms and round robin thru them as incidents occur.
The command that you mentioned seems to require a static list of users. It seems to be trying to open a new chat for me.
- Sep 13, 2021Okay, never encountered that scenario and as far as I know you need to add users with deep links to chats.
- Jun_CaiNov 17, 2021Copper ContributorHi, I suppose you can develop a bot app that can add the user into the required group chat with chat histories by graphAPI, but you should consider more regarding the security and data protection. since once the app has permission to add anyone into any chat group. then the chat history will open for anyone.
Reference:
https://docs.microsoft.com/en-us/graph/api/chat-post-members?view=graph-rest-1.0&tabs=http
- ArturJankowskiJun 28, 2022Copper Contributor
ChristianJBergstrom
Hi
the problem is that this method is onetime use.
While you left this chat and try to get back using same link with emails and chat name you will create or chat launcher will create another chat with same groups and same chant name, but with different deeplink-id.
And that would be a question, how to get back to once created chat using link, not asking this chat's members to draw you back.
I tell you what we need that for. Previously we used Slack, and there we have channels with straight ID identification. Teams have channels also, but is heavily restricted in terms of numbers of channels per team.
Any more suggestions about how to use links to enter chat?- tobyjohnstonJul 05, 2022Copper ContributorHi Artur, our application needs the exact same functionality to open existing groupchat via deep link.
I created an enhancement request if you want to upvote it or add comments.
https://feedbackportal.microsoft.com/feedback/idea/1ec1de7c-82fc-ec11-a81b-6045bd864d4f