Programmatically Create Channel Tab (not from Configure popup)

≡放荡痞女 提交于 2019-12-11 16:25:36

问题


I have a use case where I would like to create a Channel/group tab, but from code -- not from the configure experience

Where?

  • user in in a channel and a Task is popped up (via custom iFrame)
  • user selects an item from this iFrame, and a new Tab is created in that channel, pointing (Deeplinking?) to that content

  • The channel may not have a Tab created; I can see how you get the current Tabs for a channel in microsoftTeams.js

(ie: microsoftTeams.getTabInstances(callback: (tabInfo: TabInformation),tabInstanceParameters?: TabInstanceParameters,))

  • but there is no mechanism either in microsoftTeams.js -or- Microsoft Graph to create a new Tab in that channel

I attempted to use

microsoftTeams.executeDeepLink(deepLink: string, onComplete?: (status: boolean, reason?: string))

with an appropriately formatted deepLink but it silently failed

My code works OK from the "configurableTabs": [ experience

Thoughts? Missing feature?

Or am I missing something?


回答1:


Please take a look at Add Tab to channel using Graph API.



来源:https://stackoverflow.com/questions/59079908/programmatically-create-channel-tab-not-from-configure-popup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!