Oleksa
Oleksa

Reputation: 646

Teams::AdaptiveCard: Why my card's content could not be displayed?

We have a published app in the Teams App Store.

The app has attachments functionality which is built based on the task module. To upload/download attachment we make an AdaptiveCard and add Submit.Action with msteams object and add out object to it. Example:

"data": {"msteams": {"type": "task/fetch"}, "mmt": {"type": "attachments/upload"}}

Everything worked fine till the 10th of September, when the Teams Desktop Apps stopped rendering our cards (iOS and Android continued working):

enter image description here

After an investigation we've found that Action.Submit caused it. Here's the Action data:

{
    "type": "Action.Submit",
    "title": "Upload image",
    "data": {
        "mmt": {
            "id": 101,
            "type": "bur/kek",
            "contentType": "hi/microsoft"
        },
        "msteams": {
            "type": "task/fetch"
        }
    }
},

The issue is caused by these lines:

"id": 101,
"type": "bur/kek"

If we change id from type int to string or rename field "type" to "anyType" the issue does not appear.

So this looks like a BUG to me.

Upvotes: 1

Views: 391

Answers (1)

Hunaid Hanfee-MSFT
Hunaid Hanfee-MSFT

Reputation: 926

We are able to repro the issue. Sending card having "id" as int isn't rendering. I faced no issue if I make "id" as string and "type" as "bur/kek".

We have raised a bug for this. Internal team is looking into it. I will update you one it is fixed or if we got update from them.

Upvotes: 1

Related Questions