Forum Discussion

DMarcolo's avatar
DMarcolo
Copper Contributor
Jul 06, 2020
Solved

Generate Team/Channel link via API

Hi everyone, I would like some help with the Microsoft API Graph - Teams product. I'm creating a new app in my Azure Directory to be able to interact with the Teams and groups that exists within thi...
  • Hi DMarcolo ,

     

    So in terms of getting the Channel link for a Channel of a Team:

    GET /teams/{TeamId}

    GET /teams/{TeamId}/channels

     

    And to specify a link that will take you within a Channel of a Team an example is shown here:
    https://teams.microsoft.com/l/team/{ChannelId}/conversations?tenantId={TenantId}

    "webUrl":

    https://teams.microsoft.com/_#/conversations/General?threadId=19:b91a8b7e7b1046e78b21c4d405eb3003@thread.tacv2&ctx=channel

    Reference Documentation:
    https://docs.microsoft.com/en-us/graph/api/team-get?view=graph-rest-1.0&tabs=http
    https://docs.microsoft.com/en-us/graph/api/channel-list?view=graph-rest-1.0&tabs=http
     
    And have a play at: https://aka.ms/ge
     

    Thanks

     

    Henry

     

     

Resources