0

我使用microsoftTeams.shareDeeplink()subEntityId, subEntityLabel,subEntityWebUrl作为参数的方法创建了深度链接。

我试图使用创建的深层链接。根据提供的文档subEntityId 可以在点击链接并通过使用重新加载选项卡时在上下文中检索回microsoftTeams.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:257ce3c0795a4477bb404d2c3db2b5a4@thread.skype",
   "entityId":"aa13ec1b-376a-11e5-6767-2c337afbce1e",
   "groupId":"ed9fa599-ca43-41c5-b500-6a09a2688a25",
   "isFullScreen":false,
   "locale":"en-in",
   "subEntityId":undefined,
   "teamId":"19:257ce3c0795a4477bb404d2c3db2b5a4@thread.skype",
   "theme":"default",
   "tid":"fce50195-2315-47af-a684-ff91de5f9075",
   "upn":"sudheer@wittyparrot.com"
}

注意:在调用shareDeeplink(subEntityId,subEntityLabel)时,根据文档,它应该显示包含标签为的链接的对话框subEntityLabel。但是,它显示带有标签的链接为entityLabel

4

1 回答 1

1

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

于 2017-09-05T21:50:07.013 回答