Forum Discussion

hireggie's avatar
hireggie
Copper Contributor
Feb 27, 2020
Solved

Link URL to Team Channel

Hello all,

 

I'm trying to link a URL from a fillable PDF to a "Teams Channel".   If I plug in the following URL, it works great (it links the user directly to a personal Teams Chat).  However, rather than link the user to Chat channel, I want the user to be linked directly to a  general Teams Channel. (I hope this makes sense).  

Is any of this possible?

 

https://teams.microsoft.com/l/chat/0/0?users=XXX@XXX.com&topicName=Completed-training&message=TrainingTraining Complete:

  • The only way this works is if the user is already joined to the Team. You can right click a channel and get link to get a link to the channel if they would be part of it already and use that URL.

7 Replies

  • Eliot_Cole's avatar
    Eliot_Cole
    Iron Contributor

    I would leverage what you can take from this Microsoft document on Teams chat/channel 'Deep Link' URLs.

    • NB - For others reading this, as the OP mentioned, when relating to Teams teams, each 'chat' is a 'channel' so ensure that you have this noted at least in your head 🙂

     

    ---

     

    Structural Differences Between Chat And Channel Deep Links

    There's a subtle difference between these, which is easiest noted by showing you:

    A teams chat link:

    https://teams.microsoft.com/l/chat/19:INSERT_CHANGEABLE_ID_OF_CHAT@thread.v2/conversations

    A teams channel link:

    https://teams.microsoft.com/l/channel/19:INSERT_CHANGEABLE_ID_OF_CHANNEL@thread.tacv2/conversations

    Obviously using the 19:whatever @ thread.etc in the correct context, above.

    NB - The document does not detail how this is affected by Microsoft's recent (last few months) switch to a cloud . microsoft . com domain at the base of it all, however, they appear to redirect perfectly, so for now that can be ignored

     

    ---

     

    Getting those is less obvious, and if I can edit it answer, I will, but there are a few ways, of which I will list some now that are not particularly 'easy' for the lay person, but should be doable with a brief startpage search for 'how to' stuffs:

    1. Watch your browser tools/toolbox in the 'network' and/or 'console' section for anything with 'thread' in it
    2. Look at the page code and there should be IDs in the HTML
    3. Use the group ID (object ID in Entra) with this graph API request:/teams/TEAM_ID/channels
  • The only way this works is if the user is already joined to the Team. You can right click a channel and get link to get a link to the channel if they would be part of it already and use that URL.