Forum Discussion

Jon_Leapexpert's avatar
Jon_Leapexpert
Copper Contributor
Apr 26, 2021

[Development] Can Teams sdk support navigate between tabs

I have Chat tab and tab A. Inside tab A , I want to click to a button that navigate back to Chat tab. Does Teams support that.
Example: in the picture, after click on the button in red tab (LeapXpert) ,it navigate back to blue tab (Chat tab)

  • Hi Jon_Leapexpert , yes, you can navigate from tab B to tab A using deeplink using below code.

    microsoftTeams.executeDeepLink("https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>&context=<context>");


    You can fallow deeplink to tab documentation.

  • Hi Jon_Leapexpert , yes, you can navigate from tab B to tab A using deeplink using below code.

    microsoftTeams.executeDeepLink("https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>&context=<context>");


    You can fallow deeplink to tab documentation.

    • Jon_Leapexpert's avatar
      Jon_Leapexpert
      Copper Contributor

      hi Jagadeesh-MSFT 

      I only able to open excel, pdf file in Teams when use the executeDeepLink

      If I want to open image , it will open the Safari and open the sharepoint link.

      Is there any way that I can open image in Teams by using executeDeepLink 

      Like this:

      instead of 

       

      Many thanks for your support 

Resources