MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
286 stars 508 forks source link

Clarification on the use of "supportedChannelTypes" property #7570

Open swarajchavan98 opened 1 year ago

swarajchavan98 commented 1 year ago

According to the below article, it seems possible to add apps in private channels, using the "supportedChannelTypes" property. https://learn.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#supportedchanneltypes

However, after adding the property to my manifest file, and uploading it to developer portal, only public channels are shown when trying to add the app.

So is the property really used for adding apps to private channels or for something else?

Here is my manifest.json. I have replaced some sensitive values with dummy ones:

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.15/MicrosoftTeams.schema.json",
  "version": "1.0.8",
  "manifestVersion": "1.15",
  "id": "<1234_id>",
  "packageName": "com.package.name",
  "name": {
    "short": "Demo app",
    "full": ""
  },
  "developer": {
    "name": "demodev",
    "mpnId": "",
    "websiteUrl": "https://abcd.com",
    "privacyUrl": "https://abcd.com/privacy",
    "termsOfUseUrl": "https://abcd.com/termsofuse"
  },
  "description": {
    "short": "Hello, human",
    "full": "blah blah blah blah"
  },
  "icons": {
    "outline": "outline.png",
    "color": "color.png"
  },
  "accentColor": "#FFFFFF",
  "staticTabs": [
    {
      "entityId": "conversations",
      "scopes": [
        "personal"
      ]
    },
    {
      "entityId": "about",
      "scopes": [
        "personal"
      ]
    }
  ],
  "bots": [
    {
      "botId": "<1234_id>",
      "scopes": [
        "personal",
        "team"
      ],
      "commandLists": [
        {
          "commands": [
            {
              "title": "demo",
              "description": "Create a demo task"
            }
          ]
        }
      ],
      "isNotificationOnly": false,
      "supportsCalling": false,
      "supportsVideo": false,
      "supportsFiles": false
    }
  ],
  "validDomains": [],
  "webApplicationInfo": {
    "id": "<1234_id>",
    "resource": ""
  },
  "showLoadingIndicator": true,
  "supportedChannelTypes": [
    "sharedChannels",
    "privateChannels"
  ]
}
ghost commented 1 year ago

Hi swarajchavan98! 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

Nivedipa-MSFT commented 1 year ago

@swarajchavan98 - Thanks for reporting your issue. We have tested this with supportedChannelTypes property and we are also not getting private and shared channels. We have raised a bug for the same. We will keep you posted if there are any updates.