Cody Wahl
Cody Wahl

Reputation: 25

Launch Teams chat with particular contact using msteams URI scheme

I'm able to open Teams chat with a specified contact using 'sip:[email protected]' but 'msteams:[email protected]' only opens the application; it does not open chat with the specified individual.

Is there, or will there be, a scheme which allows for opening chat with an individual using the 'msteams:' uri similar to 'skype:[email protected]'?

Upvotes: 1

Views: 2740

Answers (3)

roney
roney

Reputation: 1092

Updated answer try this <a href="MSTeams:/l/chat/0/[email protected]">Teams Chat</a>

This will open a private conversation with the user in ms teams

Upvotes: 5

Ennova
Ennova

Reputation: 702

https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links

Find the Chat deeplink, and embed elsewhere.

Example: With one or more users can be specified.

Example: https://teams.microsoft.com/l/chat/0/[email protected],[email protected]&topicName=Prep%20For%20Meeting%20Tomorrow&message=Hi%20folks%2C%20kicking%20off%20a%20chat%20about%20our%20meeting%20tomorrow

The query parameters are:

users The comma-separated list of user IDs representing the participants of the chat. The user performing the action is always included as a participant. The User ID field currently only supports the Azure AD UserPrincipalName (typically an email address).
topicName An optional field for chat's display name, in the case of a chat with 3 or more users. If this field is not specified, the chat's display name will be based on the names of the participants.
message An optional field for the message text that you want to insert into the current user's compose box while the chat is in a draft state.

Note that the link will only open a chat if the users are in your tenant. For federated users it will only open if you previously had a chat window with them.

Upvotes: 0

Wajeed Shaikh
Wajeed Shaikh

Reputation: 3168

Currently this is not supported for Microsoft Teams but it's on our roadmap.

Upvotes: -1

Related Questions