以编程方式移动到 Microsoft Teams 中的特定选项卡

Programatically move to specific tab in Microsoft Teams

我开发了自定义应用程序并将其部署到 MS Teams。我想以编程方式从一个选项卡导航到另一个选项卡。

例如,“主页”选项卡中有一个 link,单击后应以编程方式激活“概览”选项卡。

如有任何帮助,我们将不胜感激

您可以使用“深层链接到选项卡”导航到特定选项卡。

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

从一个选项卡导航到另一个选项卡

microsoftTeams.executeDeepLink("https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tasklist123?webUrl=https://tasklist.example.com/123&label=Task List 123&context={"channelId": "19:cbe3683f25094106b826c9cada3afbe0@thread.skype"}");

有关详细信息,请阅读此 documentation