I have an app that runs within Teams that shows a list of employees, name, email, presence, title and phone.
For the name column I would like to present it as a link that when clicked will open up a chat within the Teams desktop or mobile app with that employee. If there is an existing chat session, it should go to that, else create a new chat. It should not open the web client and go through the hassle of choosing to then open in the desktop app.
I was previously using this format:
https://teams.microsoft.com/l/chat/0/0?users=user@user.com
This caused the whole web client flow, so after some digging around I changed it to:
MSTeams:/l/chat/0/0?users=user@user.com
This seems to work for an existing chat but does not work for a new chat. The To: field at the top of the page is not completed.
Any ideas?
Thanks
Mar