SOLVED

[Development] Can Teams sdk support navigate between tabs

Copper Contributor

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)

Screen Shot 2021-04-26 at 10.57.33.png

4 Replies
best response confirmed by Jon_Leapexpert (Copper Contributor)
Solution

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.

@Jagadeesh-MSFT 

I will try.

Thank you for your support.

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:

Screen Shot 2021-04-26 at 18.49.20.png

instead of 

Screen Shot 2021-04-26 at 18.50.11.png

 

Many thanks for your support 


Hi @Jon_Leapexpert , Currently you can create a deeplink with the text message only. You cannot send a image using the deeplink.
1 best response

Accepted Solutions
best response confirmed by Jon_Leapexpert (Copper Contributor)
Solution

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.

View solution in original post