Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add a static tab without a contentUrl #2723

Open
catmanjan opened this issue Feb 17, 2025 · 5 comments
Open

Cannot add a static tab without a contentUrl #2723

catmanjan opened this issue Feb 17, 2025 · 5 comments

Comments

@catmanjan
Copy link

According to https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#statictabs

The contentUrl property is not required, however if I try and upload a manifest without it, I get an error, only readding the contentUrl fixes the issue.

It also passes the validator without contentUrl.

e.g.

  "staticTabs": [
    {
      "entityId": "b4b4da44-ddb9-4821-ac64-55cac997d3c7IngressSearch",
      "scopes": [
        "personal"
      ],
      "context": [
        "personalTab",
        "channelTab"
      ],
      "name": "Ingress Search",
      "websiteUrl": "https://icognitiondev.sharepoint.com/sites/search/SitePages/Search.aspx"
    }
  ],

Doesn't work, but:

  "staticTabs": [
    {
      "entityId": "b4b4da44-ddb9-4821-ac64-55cac997d3c7IngressSearch",
      "scopes": [
        "personal"
      ],
      "context": [
        "personalTab",
        "channelTab"
      ],
      "name": "Ingress Search",
      "contentUrl": "https://icognitiondev.sharepoint.com/sites/search/SitePages/Search.aspx"
      "websiteUrl": "https://icognitiondev.sharepoint.com/sites/search/SitePages/Search.aspx"
    }
  ],

Does.

Copy link
Contributor

Hi catmanjan! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@Meghana-MSFT
Copy link

@catmanjan - Thank you for reporting this, we will check this and get back to you.

@Meghana-MSFT
Copy link

@catmanjan - We checked this internally and got a confirmation that static tabs should have a contentUrl.

The only static tab that can be added without a contentUrl is the "conversations" tab and that's used to change the default order of tabs in the personal app as documented here:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/create-personal-tab?tabs=vs&pivots=node-java-script#reorder-tabs

All other static tabs should have a contentUrl. That is mentioned in "Create a tab" docs here:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/create-personal-tab?tabs=vs&pivots=node-java-script

@catmanjan
Copy link
Author

@Meghana-MSFT thanks, can you log a ticket to get this page corrected, if properties are required they should also fail the validator:

https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#statictabs

@Meghana-MSFT
Copy link

@catmanjan - Sure, we will check internally and get the doc updated. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants