无法通过深层链接在MS Teams选项卡应用程序上获取subEntityId

时间:2020-10-21 07:52:49

标签: microsoft-teams

我无法从深层链接检索Teams选项卡应用程序上的subEntityId。 getContext中始终为空。有人可以帮我吗?

我在此页面https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links

之后生成了深层链接

链接看起来像这样,

mutate(submission_date=as.Date(submission_date, "%m/%d/%Y"))

该链接可以正常工作,将我带到Teams上的标签应用程序。但是没有subEntityId。

标签应用的清单如下所示,

# app/controllers/application_controller.rb

class ApplicationController < ActionController::Base
  before_action :set_paper_trail_whodunnit

  protected
  
  def user_for_paper_trail
    current_user&.name || "Public User"
  end
end

1 个答案:

答案 0 :(得分:1)

我认为您需要更改: ...anpi-personal&context=%7B%22subEntityId%22:%22task123%22%7D

至: ...anpi-personal?context=%7B%22subEntityId%22:%22task123%22%7D

很难看到更改-我将“&context”更改为“?context”-如果要传递的-multiple-值(例如“ weburl = something” AND“ context =东西”),但在这种情况下,您只有“上下文”,因此需要以“?”开头