microsoftTeams.shareDeepLink 的用法
Usage of microsoftTeams.shareDeepLink
我尝试在 Microsoft Teams 组选项卡中为 subEntityId 生成深度 link。当我打电话时
microsoftTeams.shareDeepLink({
subEntityId: "myid",
subEntityLabel: "123"
}
);
我得到这个对话框(我的选项卡名为 'Interactive':
如您所见,文本字段中没有 URL,只有标签,它附加有选项卡的名称。我不知道 https://docs.microsoft.com/de-de/microsoftteams/platform/concepts/build-and-test/deep-links 如何使用 shareDeepLink
,我也不知道我还能如何使用它来生成 URL。有人可以帮忙吗?
您需要生成深层链接
https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>&context=<context>
您需要替换 appid、entityid、weburl、label,并且在上下文中您需要添加编码的子实体 ID。
microsoftTeams.shareDeepLink('url');
事实证明,深层 link 生成工作正常,但 texbox 包含富文本 link 而不是实际的 URL。因此,将其复制到富文本块中是可行的,但不能复制到浏览器的 URL 字段中。
我尝试在 Microsoft Teams 组选项卡中为 subEntityId 生成深度 link。当我打电话时
microsoftTeams.shareDeepLink({
subEntityId: "myid",
subEntityLabel: "123"
}
);
我得到这个对话框(我的选项卡名为 'Interactive':
如您所见,文本字段中没有 URL,只有标签,它附加有选项卡的名称。我不知道 https://docs.microsoft.com/de-de/microsoftteams/platform/concepts/build-and-test/deep-links 如何使用 shareDeepLink
,我也不知道我还能如何使用它来生成 URL。有人可以帮忙吗?
您需要生成深层链接
https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>&context=<context>
您需要替换 appid、entityid、weburl、label,并且在上下文中您需要添加编码的子实体 ID。
microsoftTeams.shareDeepLink('url');
事实证明,深层 link 生成工作正常,但 texbox 包含富文本 link 而不是实际的 URL。因此,将其复制到富文本块中是可行的,但不能复制到浏览器的 URL 字段中。