Skip to content

Create Tab methods do not create configured tabs due to improper JSON request body #5

@emarcus74

Description

@emarcus74

Hello,

Recently started using the JSSP broker here and saw that the methods for creating tabs would create a tab in teams. However, the tab would show up in teams saying it still needed to be configured.

I saw after some digging in the code that this is because the request body JSON in the broker code does not match that which is shown in this microsoft documentation for talking with the Teams REST API.

MS Documentation

Basically the Configuration{} section mentioned in the docs was missing from how the code builds up the request and therefore the EntityID, ContentURL, Website URL, etc never actually got passed to the Teams API to configure a tab properly. I saw that after updating the broker code to build up the proper JSON based on the properties[] array that this would function properly. I'm not super familiar with github and couldn't find a way to actually get my pull request in for updating the code so that this works. But I've attached the index.js that now shows this working on my end in the hopes that this helps others or can be officially updated.

updatedTSTabIssue.zip

Please let me know if you need any further information here! Happy to help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions