SOLVED

[Development] Can Teams sdk support navigate between tabs

%3CLINGO-SUB%20id%3D%22lingo-sub-2289724%22%20slang%3D%22en-US%22%3E%5BDevelopment%5D%20Can%20Teams%20sdk%20support%20navigate%20between%20tabs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289724%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20Chat%20tab%20and%20tab%20A.%20Inside%20tab%20A%20%2C%20I%20want%20to%20click%20to%20a%20button%20that%20navigate%20back%20to%20Chat%20tab.%20Does%20Teams%20support%20that.%3CBR%20%2F%3EExample%3A%20in%20the%20picture%2C%20after%20click%20on%20the%20button%20in%20red%20tab%20(LeapXpert)%20%2Cit%20navigate%20back%20to%20blue%20tab%20(Chat%20tab)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202021-04-26%20at%2010.57.33.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275444i6CA1D64E4B4B4167%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202021-04-26%20at%2010.57.33.png%22%20alt%3D%22Screen%20Shot%202021-04-26%20at%2010.57.33.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2289724%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290189%22%20slang%3D%22en-US%22%3ERe%3A%20%5BDevelopment%5D%20Can%20Teams%20sdk%20support%20navigate%20between%20tabs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290189%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%2F436104%22%20target%3D%22_blank%22%3E%40Jon_Leapexpert%3C%2FA%3E%26nbsp%3B%2C%20yes%2C%20you%20can%20navigate%20from%20tab%20B%20to%20tab%20A%20using%20deeplink%20using%20below%20code.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EmicrosoftTeams.executeDeepLink(%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fentity%2F%3CAPPID%3E%2F%3CENTITYID%3E%3FwebUrl%3D%3CENTITYWEBURL%3E%26amp%3Blabel%3D%3CENTITYLABEL%3E%26amp%3Bcontext%3D%3CCONTEXT%3E%22)%3B%3C%2FCONTEXT%3E%3C%2FENTITYLABEL%3E%3C%2FENTITYWEBURL%3E%3C%2FENTITYID%3E%3C%2FAPPID%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3EYou%20can%20fallow%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fdeep-links%23deep-linking-from-your-tab%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edeeplink%20to%20tab%3C%2FA%3E%20documentation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290206%22%20slang%3D%22en-US%22%3ERe%3A%20%5BDevelopment%5D%20Can%20Teams%20sdk%20support%20navigate%20between%20tabs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290206%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F906127%22%20target%3D%22_blank%22%3E%40Jagadeesh-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20try.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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 (Occasional 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.