Create a Teams channel tab with default metadata
Provision a Kameleon tab in a Microsoft Teams channel with pre-filled default metadata values using the Microsoft Graph API.
Prerequisites
The Kameleon Teams App must be deployed in your organization (see Deploy Kameleon Teams App).
You need the Microsoft Teams
{team-id},{channel-id}, and Kameleon{kameleon-app-id}from the Microsoft Graph API (Teams tab resource).
Add a Kameleon tab with default metadata
-
Look up the metafield names you want to pre-fill in Kameleon Hub under Metafields.
-
Pass those metafield names as query parameters on
contentUrl(for example,https://teams.kameleon.app/tab?documenttype=Memo) and send aPOSTrequest to Microsoft Graph:POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/tabs { "displayName": "Kameleon", "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{kameleon-app-id}", "configuration": { "entityId": "", "contentUrl": "https://teams.kameleon.app/tab?documenttype=Memo", "websiteUrl": "https://teams.kameleon.app/tab", "removeUrl": "" } }