Adding a Tab to a Team Channel through Flow

隐身守侯 提交于 2019-12-25 02:44:27

问题


I'm trying to use Flow to add a SharePoint List Tab to a Channel in a Team. But while I can add a Tab, the Tab is always blank.

I've tried both Microsoft Graph Explorer and Flow but I can't seem to configure the tab to show my SharePoint List. Or any other app for that measure. The tab is always blank.

I've followed the POST from the API

POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/tabs

Body:
NOTE: 2a527703-1f6f-4559-a332-d8a7d288cd88 is the TeamsAppsId for Sharepoint and Lists which I gathered from the API

{
  "displayName": "My Contoso Tab",
  "teamsApp@odata.bind" : "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/2a527703-1f6f-4559-a332-d8a7d288cd88",
  "configuration": {
    "entityId": "LIST ID HERE",
    "contentUrl": "https://www.contoso.com/Orders/LIST ID HERE/tabView",
    "websiteUrl": "https://www.contoso.com/Orders/LIST ID HERE",
    "removeUrl": "https://www.contoso.com/Orders/LIST ID HERE/uninstallTab"
  }
}

I get a 201 Created but when I go to my Team and check the Tab in the Channel, its blank and I need to manually set it up from Settings.

When I run the call on explorer using Sharepoint Website AppId (com.microsoft.teamspace.tab.web) I get the following success response

But when I go to the Teams List Tab I just created I see this

Any suggestions on how I can tackle this?

来源:https://stackoverflow.com/questions/55323583/adding-a-tab-to-a-team-channel-through-flow

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