我已经使用microsoftTeams.shareDeeplink()方法创建了Deeplink,该方法将subEntityIdsubEntityLabelsubEntityWebUrl作为参数。

我尝试使用创建的Deeplink。当跟随链接并使用subEntityId重新加载选项卡时,可以在上下文中检索A ccording to the documentation providedmicrosoftTeams.getContext()。但是,检索到的上下文对象具有subEntityId:undefined

即使在调用subEntityId时提供了shareDeeplink(),但在进行深层链接时,上下文对象也不包含subEntityId

有人可以帮我这个忙吗?

网址:

https://teams.microsoft.com/l/entity/385875ca-c900-4f42-9ba8-5bd45fa35bb9/aa13ec1b-376a-11e5-6767-2c337afbce1e?webUrl=https%3a%2f%2fwidget.parrot365.com&label=ui+workspace+1&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fp365.wittyparrot.com%3a3000%23%2fmain%3fsource%3dteams%26workspaceId%3daa13ec1b-376a-11e5-6767-2c337afbce1e%22%2c%0d%0a++%22channelId%22%3a+%2219%3a257ce3c0795a4477bb404d2c3db2b5a4%40thread.skype%22%0d%0a%7d&tenantId=fce50195-2315-47af-a684-ff91de5f9075

JSON对象:

{
   "channelId":"19:[email protected]",
   "entityId":"aa13ec1b-376a-11e5-6767-2c337afbce1e",
   "groupId":"ed9fa599-ca43-41c5-b500-6a09a2688a25",
   "isFullScreen":false,
   "locale":"en-in",
   "subEntityId":undefined,
   "teamId":"19:[email protected]",
   "theme":"default",
   "tid":"fce50195-2315-47af-a684-ff91de5f9075",
   "upn":"[email protected]"
}


注意:调用shareDeeplink(subEntityId,subEntityLabel)according to the docs时,它应该显示对话框,其中包含带有标签为subEntityLabel的链接。但是,它显示标签为entityLabel的链接。

最佳答案

您提到了调用shareDeeplink(subEntityId,subEntityLabel),但是正确的格式是使用JSON对象作为参数:shareDeepLink({subEntityId: subEntityId, subEntityLabel: subEntityLabel} )

08-17 12:20