Skip to content

Cannot add spfx webpart as a tab to channel in Teams by using Microsoft Graph #5892

@stkBul

Description

@stkBul

Category

  • Bug

Describe the bug

I'm trying to add a custom spfx webpart to a channel in MS Teams by using this endpoint
POST https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/tabs
and this body
{
"displayName": "",
"teamsApp@odata.bind" : "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/",

}
Before last week (8th of June, 2020), every time I used to use the endpoint, there was popup window in the tab saying 'Setup this tab' and Save button.
Now the tab is just empty. It works if I add the spfx webpart manully via the add button.

Steps to reproduce

  1. Follow the guidelines to create spfx webpart for Teams.
  2. Push the app to Teams from the App catalog.
  3. Use the Graph endpoint to add the webpart as a tab to a channel

Expected behavior

The tab should not be empty and the spfx webpart should be loaded in the tab.

Environment details (development & target environment)

DELETE THIS LINE BEFORE SUBMITTING - Complete the following (if ignored you'll be prompted for it before we can address your issue... save the time and provide it in your initial submission).

  • Your Developer Environment: Windows 10
  • Target Environment: SharePoint Online
  • Framework: Node.js v10
  • Browser(s): Chrome v79
  • Tooling: VS Code | SPFx v1.10.0 | Visual Studio 2019]

graph
@VesaJuvonen

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfx-msteamsCategory: SharePoint Framework & Microsoft Teams supportstatus:answeredAnswer to a question.status:fixedIssue was fixed in current or prior release.type:questionQuestion... if answered, will be tagged as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions