1

I am working on a Microsoft teams tab app. The app has 2 tabs. The app is installed in a team. For testing i have deployed it on Edge browser using the "Preview your Teams app" action in VS Code, using the Teams Toolkit extension.

What i am trying to achieve is that if i share a url of one of the tabs on a group chat of that team, then on clicking that url, that tab of the app opens.

The url that i have made is of this format - https://teams.microsoft.com/l/entity/${appId}/tabId

Here the appId is

const appId = environment === "local" ? constants.TEAMS_APP_ID_LOCAL : constants.TEAMS_APP_ID_DEV;

So the final url us something like - https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tabId

But when i click on the link i see this error error

So, by clicking above link i am not able to navigate to the app's tab.

Any idea what i may be doing wrong here? or how can u fix it so that on clicking the tab's link it redirects me to that tab of the app.

Naman Bose
  • 11
  • 1
  • Could you please follow the below document to generate deeplink to Tab- https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-link-application?tabs=teamsjs-v2#generate-a-deep-link-to-your-tab – Sayali-MSFT Mar 30 '23 at 09:12
  • @Sayali-MSFT I followed this document only and using it made the link https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tabId Is there any issue with this link..? – Naman Bose Mar 30 '23 at 15:25
  • -Could you please Reshare the deeplink properly. We are not able to check the deeplink URL. – Sayali-MSFT Mar 31 '23 at 13:17
  • We have tried the below deeplink for navigate the tab and it is working fine from our end. `https://teams.microsoft.com/l/entity/61c7fc2e-43d3-41a8-9956-313eXXXXXXX/DetailsTabDemo?context={"chatId":"19%3Ameeting_xxxxxxxxxxxxxx%40thread.v2","contextType":"chat"}` – Sayali-MSFT Mar 31 '23 at 13:19
  • 1
    @Sayali-MSFT, thank you for the help. i found the issue. somehow the appId that was coming in onstants.TEAMS_APP_ID_LOCAL was not the right appId in the constants file. when i checked with that appId it seems to work fine. thank you for your help! – Naman Bose Mar 31 '23 at 14:08

0 Answers0