Reputation: 11
I am trying to send messages to Teams (chat with user) via deeplink. I succeeded at first, like a year ago. Without a change in my code, it suddenly stopped working. The link gets pasted as simple text without highlighting and it’s annoying.
I tried
[link name](link)
and <a href="link">link name</a>
syntax (encoded or raw), but nothing helps.
Is there a way to paste hyperlinks to Teams via deeplink, that will be active?
I use return $"{openIn}l/chat/0/0?users={emails}&message={System.Web.HttpUtility.UrlEncode("test [test](https://adaptivecards.io) test")}";
for preparing link.
so result url looks like this
http://teams.microsoft.com/l/chat/0/[email protected]&message=test+%5btest%5d(https%3a%2f%2fadaptivecards.io)++test
Teams in compose box just shows link that is not clickable/transformed.
Upvotes: 1
Views: 2445
Reputation: 1
After executing the deeplink and once you arrived in the Compose box where your URL is currently only plain text, you can do a quick Ctrl+A, Ctrl+X, Ctrl+V to select all, cut, then paste and by pasting the text, the URL will become a clickable link. This requires that you educate your users to perform this extra step, but if you are already providing them with a manual deeplink and they need to manually submit the preloaded message, in this case they are already performing actions.
Upvotes: 0
Reputation: 369
Deeplink:- https://teams.microsoft.com/l/chat/0/[email protected]&topicName=TestChat&message=Hello
Microsoft Teams Version 1.5.00.8170 (64-bit).
please change the user ID as per your tenant.
Upvotes: 1