Forum Discussion
How to include button to channel tab in an adaptive card
- Oct 28, 2024
To include a button in an adaptive card that opens a channel tab, you can use a deep link that targets the specific channel tab. The format you mentioned is correct, but it needs to be adjusted to point to the channel tab instead of a personal tab.
Use the following format to create a deep link to the channel tab:https://teams.microsoft.com/l/entity/{appId}/{entityId}?webUrl={webUrl}&label={label}{appId}: The app ID of the tab.{entityId}: The entity ID of the tab.{webUrl}: The URL of the tab content.{label}: The label for the button.
Example:
https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tasklist123?webUrl=https://tasklist.example.com/123/456&label=Task 456&context={"subEntityId": "task456","channelId": "19:cbe3683f25094106b826c9cada3afbe0@thread.skype"}Thanks,
Nivedipa
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
To include a button in an adaptive card that opens a channel tab, you can use a deep link that targets the specific channel tab. The format you mentioned is correct, but it needs to be adjusted to point to the channel tab instead of a personal tab.
Use the following format to create a deep link to the channel tab:
https://teams.microsoft.com/l/entity/{appId}/{entityId}?webUrl={webUrl}&label={label}
{appId}: The app ID of the tab.{entityId}: The entity ID of the tab.{webUrl}: The URL of the tab content.{label}: The label for the button.
Example:
https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tasklist123?webUrl=https://tasklist.example.com/123/456&label=Task 456&context={"subEntityId": "task456","channelId": "19:cbe3683f25094106b826c9cada3afbe0@thread.skype"}
Thanks,
Nivedipa
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.