MicrosoftTeams SDK 的 getContext() 方法中返回的上下文对象的 subEntityId 为 "undefined"

context object returned in getContext() method of MicrosoftTeams SDK has subEntityId as "undefined"

我使用 microsoftTeams.shareDeeplink() 方法创建了 deeplink,该方法以 subEntityIdsubEntityLabelsubEntityWebUrl 作为参数。

我试图消耗创建的深度link。当跟随 link 并使用 microsoftTeams.getContext() 重新加载选项卡时,可以在上下文中检索 According to the documentation providedsubEntityId。但是,检索到的上下文对象有 subEntityId:undefined

即使在调用 shareDeeplink() 时提供了 subEntityId,但在调用 deeplink 时上下文对象不包含 subEntityId

有人可以帮我解决这个问题吗?

url:

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)according to the docs 时,它应该显示包含 link 且标签为 subEntityLabel 的对话框。但是它显示 link 标签为 entityLabel

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