Forum Discussion

vpatel2003's avatar
vpatel2003
Copper Contributor
Mar 10, 2023
Solved

Navigate to personal tab using deeplink

I have encountered an issue while trying to create a deep link for my Microsoft Teams tab. My tab opens a web app built with Angular, which consists of a homepage and multiple internal pages. Specifically, I am having trouble creating a link that will open a particular route ('/article/1414') within the personal tab.

I have attempted to create the deep link using the following format:

 

 

https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>

 

 



The personal tab will open (home page). However, I have not been successful in getting the link to navigate to the specified route (/article/{articleId}).

When creating the link, I have set the following parameters:

  • entityWebUrl: https://site.web.com/article/1414
  • label: Article
  • entityId: I am using the personal tab entityId from the manifest.

I am seeking advice on whether this is the correct way to create a deep link for my Teams tab. Any insights or suggestions would be greatly appreciated.

Thank you in advance.

  • For those seeking an alternative way. please see my answer here

    https://stackoverflow.com/questions/75692178/ms-teams-navigating-to-personal-tab-using-deeplink/75726641

4 Replies

  • vpatel2003's avatar
    vpatel2003
    Copper Contributor
    For those seeking an alternative way. please see my answer here

    https://stackoverflow.com/questions/75692178/ms-teams-navigating-to-personal-tab-using-deeplink/75726641

    • Sayali-MSFT's avatar
      Sayali-MSFT
      Icon for Microsoft rankMicrosoft
      vpatel2003 - Tracking this question here-https://stackoverflow.com/questions/75692178/ms-teams-navigating-to-personal-tab-using-deeplink
      • vpatel2003's avatar
        vpatel2003
        Copper Contributor

        Please find a solution for navigating to a page within personal tab or teams tab.

        Currently only the Homepage is loading, not second level routes. even after adding /blog or /employee.

        See example below.

        Navigate to blog page:
        var encodedContext = encodeURIComponent(JSON.stringify({"subEntityId": "124451"}));
        var taskItemUrl = 'https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/blogs?webUrl=context=' + encodedContext;

        Navigate to employee profile page:
        var encodedContext = encodeURIComponent(JSON.stringify({"subEntityId": "task456"}));
        var taskItemUrl = 'https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/employee?webUrl=context=' + encodedContext;

Resources