Teams does not show adaptive card in extension message for unfurling link
Teams TA
166
Reputation points
According to the unfurling instruction and I used the AdaptiveCard as invoke response in the document
Invoke response from browser develope tool window is as follow, but Teams can not display adaptive card info. Console log that AppBasedLinkService: Could not use card with content type: application/vnd.microsoft.card.adaptive as a preview card for app id
In this page, I found that message extension results support AdaptiveCard but preview does not. I want to know the difference between them
What should I do, please help, thanks.
{
"composeExtension": {
"attachments": [
{
"content": {
"type": "AdaptiveCard",
"body": [
{
"items": [
{
"color": null,
"horizontalAlignment": null,
"isSubtle": false,
"maxLines": 0,
"size": "medium",
"text": "Publish Adaptive Card schema",
"weight": "bolder",
"wrap": false,
"separator": false,
"type": "TextBlock"
},
{
"columns": [
{
"width": "auto",
"items": [
{
"horizontalAlignment": null,
"size": "small",
"style": "person",
"url": "https://as-prod.asyncgw.teams.microsoft.com/urlp/v1/url/content?url=https%3a%2f%2fpbs.twimg.com%2fprofile_images%2f3647943215%2fd7f12830b3c17a5a9e4afcc370e3a37e_400x400.jpeg",
"height": "auto",
"separator": false,
"type": "Image"
}
],
"separator": false,
"type": "Column"
},
{
"width": "stretch",
"items": [
{
"color": null,
"horizontalAlignment": null,
"isSubtle": false,
"maxLines": 0,
"size": null,
"text": "Matt Hidinger",
"weight": "bolder",
"wrap": true,
"separator": false,
"type": "TextBlock"
},
{
"color": null,
"horizontalAlignment": null,
"isSubtle": true,
"maxLines": 0,
"size": null,
"text": "Created {<!-- -->{DATE(2017-02-14T06:08:39Z, SHORT)}}",
"weight": null,
"wrap": true,
"spacing": "none",
"separator": false,
"type": "TextBlock"
}
],
"separator": false,
"type": "Column"
}
],
"separator": false,
"type": "ColumnSet"
}
],
"separator": false,
"type": "Container"
},
{
"items": [
{
"color": null,
"horizontalAlignment": null,
"isSubtle": false,
"maxLines": 0,
"size": null,
"text": "Now that we have defined the main rules and features of the format, we need to produce a schema and publish it to GitHub. The schema will be the starting point of our reference documentation.",
"weight": null,
"wrap": true,
"separator": false,
"type": "TextBlock"
},
{
"facts": [
{
"title": "Board:",
"value": "Adaptive Card"
},
{
"title": "List:",
"value": "Backlog"
},
{
"title": "Assigned to:",
"value": "Matt Hidinger"
},
{
"title": "Due date:",
"value": "Not set"
}
],
"separator": false,
"type": "FactSet"
}
],
"separator": false,
"type": "Container"
}
],
"actions": [
{
"card": {
"type": "AdaptiveCard",
"body": [
{
"isRequired": false,
"id": "dueDate",
"separator": false,
"type": "Input.Date"
}
],
"actions": [
{
"title": "OK",
"type": "Action.Submit"
}
]
},
"title": "Set due date",
"type": "Action.ShowCard"
},
{
"card": {
"type": "AdaptiveCard",
"body": [
{
"isMultiline": true,
"maxLength": 0,
"placeholder": "Enter your comment",
"style": null,
"isRequired": false,
"id": "comment",
"separator": false,
"type": "Input.Text"
}
],
"actions": [
{
"title": "OK",
"type": "Action.Submit"
}
]
},
"title": "Comment",
"type": "Action.ShowCard"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
},
"contentType": "application/vnd.microsoft.card.adaptive"
}
],
"type": "result",
"attachmentLayout": "list"
},
"responseType": "composeExtension"
}
Sign in to answer