Teams channel Link in a custom Teams App

%3CLINGO-SUB%20id%3D%22lingo-sub-2353670%22%20slang%3D%22en-US%22%3ETeams%20channel%20Link%20in%20a%20custom%20Teams%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2353670%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20community.%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20on%20a%20custom%20Teams%20App%20with%20App%20Studio.%20This%20App%20has%20tabs.%20One%20tab%20should%20lead%20to%20another%20teams%20channel.%3C%2FP%3E%3CP%3EI%20know%20how%20to%20get%20the%20link%20to%20the%20channel.%20But%20when%20I%20add%20a%20new%20tab%20in%20the%20App%20and%20put%20the%20channel%20link%20in%20the%20field%20for%20content%20url%20it%20does%20not%20work%20properly.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20only%20receive%20what%20you%20can%20see%20on%20the%20picture%20(when%20I%20click%20on%20the%20tab%20in%20the%20App).%20By%20the%20way%20at%20this%20point%20I%20am%20already%20working%20with%20the%20teams%20dektop%20version...%3C%2FP%3E%3CP%3ESo%20I%20don't%20know%20how%20to%20solve%20that%20issue%20and%20hope%20that%26nbsp%3Bsomebody%20here%20can%20help%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%408341BD79091AF36AA2A09063B554B5CD%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%26nbsp%3B%3C%2FP%3E%3CP%3EBen_64%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2353670%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Studio%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363094%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20channel%20Link%20in%20a%20custom%20Teams%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363094%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1053598%22%20target%3D%22_blank%22%3E%40Ben_64%3C%2FA%3E%26nbsp%3B%2C%20It's%20not%20possible%20to%20display%20channel%20chat%20as%20a%20tab.%20But%20you%20can%20redirect%20to%20channel%20chat%20when%20you%20open%20a%20tab%20using%20channel%20link.%20Create%20a%20custom%20tab%20and%20use%20below%20code%20in%20tab%20file%20to%20redirect%20to%20channel%20to%20when%20you%20open%20a%20tab.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%40page%20%22%2Fdeeplink%22%0A%40%7BLayout%20%3D%20%22~%2FPages%2FShared%2F_Layout.cshtml%22%3B%7D%0A%3CSCRIPT%3E%0A%20%20microsoftTeams.initialize()%3B%0A%20microsoftTeams.executeDeepLink(%22Channel%20link%22)%3B%0A%20%3C%2FSCRIPT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Frequent Visitor

Hello community.

I am currently working on a custom Teams App with App Studio. This App has tabs. One tab should lead to another teams channel.

I know how to get the link to the channel. But when I add a new tab in the App and put the channel link in the field for content url it does not work properly. 

I only receive what you can see on the picture (when I click on the tab in the App). By the way at this point I am already working with the teams dektop version...

So I don't know how to solve that issue and hope that somebody here can help :smile:

 

Regards 

Ben_64

 

1 Reply

Hi @Ben_64 , It's not possible to display channel chat as a tab. But you can redirect to channel chat when you open a tab using channel link. Create a custom tab and use below code in tab file to redirect to channel to when you open a tab. 

 

@page "/deeplink"
@{Layout = "~/Pages/Shared/_Layout.cshtml";}
<script>
  microsoftTeams.initialize();
 microsoftTeams.executeDeepLink("Channel link");
 </script>