Bug: Adaptive card does not works on Microsoft Teams's mobile app

Copper Contributor

Hello,

 

We got a problem with adaptive card, we are using an Action.Submit button where it invoke a message request for our bot, this works fine on web but on mobile does not works, button keep on feedback and does not do any request.

 

This is our JSON:

 

{
            contentType:'application/vnd.microsoft.card.adaptive',
            content: {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "version": "1.3",
                "body": [
                    {
                        "type": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "items": [
                                    {
                                        "type": "Image",
                                        "url": `https://digital-assets.projectcor.com/integrations/${statusUrl}-d-50.png`,
                                        "spacing": "None"
                                    }
                                ],
                                "width": "50px"
                            },
                            {
                                "type": "Column",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "text": `${companyName} > ${chipName}`,
                                        "color": "Dark",
                                        "wrap": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "spacing": "None",
                                        "text": task.title,
                                        "color": "Dark",
                                        "size": "ExtraLarge",
                                        "weight": "Bolder",
                                        "wrap": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "isSubtle": true,
                                        "text": `${lang.priority}: ${utils.getPriorityName(task.priority,locale)}`,
                                        "color": "Dark",
                                        "wrap": true
                                    },
                                ],
                                "width": "stretch"
                            }
                        ]
                    },
                    {
                        "type": "ColumnSet",
                        "separator": true,
                        "spacing": "Medium",
                        "columns": [
                            {
                                "type": "Column",
                                "items": [
                                    {
                                        "type": "ColumnSet",
                                        "columns": [
                                            {
                                                "type": "Column",
                                                "items": [
                                                    {
                                                        "type": "Image",
                                                        "url": "https://digital-assets.projectcor.com/integrations/deadline-2.png"
                                                    }
                                                ],
                                                "width": "25px"
                                            },
                                            {
                                                "type": "Column",
                                                "items": [
                                                    {
                                                        "type": "TextBlock",
                                                        "text": "Deadline",
                                                        "color": "Dark",
                                                        "weight": "Bolder",
                                                        "wrap": true
                                                    },
                                                    {
                                                        "type": "TextBlock",
                                                        "text": `${date ? date  : 'No date'}`,

                                                        "color": "Dark",
                                                        "wrap": true
                                                    }
                                                ],
                                                "width": "110px"
                                            },
                                            {
                                                "type": "Column",
                                                "items": [
                                                    {
                                                        "type": "Image",
                                                        "url": "https://digital-assets.projectcor.com/integrations/usr.png"
                                                    }
                                                ],
                                                "width": "25px"
                                            },
                                            {
                                                "type": "Column",
                                                "items": [
                                                    {
                                                        "type": "TextBlock",
                                                        "text": "Project manager",
                                                        "color": "Dark",
                                                        "spacing": "Large",
                                                        "weight": "Bolder",
                                                        "wrap": true
                                                    },
                                                    {
                                                        "type": "TextBlock",
                                                        "text": `${taskPm ? taskPm : 'No project manager'}`,
                                                        "color": "Dark",
                                                        "wrap": true
                                                    }
                                                ],
                                                "width": "180px"
                                            }
                                        ]
                                    }
                                ],
                                "width": "stretch"
                            }
                        ]
                    },
                    {
                        "type": "ColumnSet",
                        "spacing": "Medium",
                        "columns": [
                            {
                                "type": "Column",
                                "items": [
                                    {
                                        "type": "Image",
                                        "url": "https://digital-assets.projectcor.com/integrations/usr.png"
                                    }
                                ],
                                "width": "25px"
                            },
                            {
                                "type": "Column",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": lang.collaborators,
                                        "color": "Dark",
                                        "spacing": "Large",
                                        "weight": "Bolder",
                                        "wrap": true
                                    },
                                    {
                                        "type": "RichTextBlock",
                                        "inlines": [
                                            {
                                                "type": "TextRun",
                                                "text": utils.collaboratorsArray(task.collaborators)
                                            }
                                        ],
                                        "spacing": "Small",
                                        "height": "stretch",
                                    }
                                ],
                                "width": "300px"
                            }
                        ],
                        "separator": true
                    },
                    {
                        "type": "ActionSet",
                        "actions": [
                            {
                                "type": "Action.Submit",
                                "title": lang.comment,
                                "data": {
                                    "msteams": {
                                        "type": "invoke",
                                        "value": {
                                            "type": "task/fetch",
                                            "action": "createComment",
                                            "route": `tasks/${task.id}`
                                        }
                                    }
                                },
                                "style": "positive"
                            },
                            {
                                "type": "Action.OpenUrl",
                                "title": lang.view_cor,
                                "url": `https://${subdomain}.${utils.getWebUrl()}/tasks/${task.id}`
                            }],
                            "separator": true,
                            "height": "stretch",
                            "spacing": "Medium",
                            "horizontalAlignment": "Center"
                        }
                ],

            }

 

Comment button of invoke type and action createComment has the issue.

 

Thanks!

9 Replies
@MaribalCor - We will check on it and let you know the updates.
@MaribalCor - We are able to repro that issue , We have raised bug for the same and concerned team is looking into it. We will inform you once we get any update.
@MaribalCor -Bug is resolved. Publicly rolled out. Could you please check and let me know?
Microsoft Teams Version 1.5.00.13614 (64-bit)-E.
Thanks

@Sayali-MSFT I have tried the same on IOS mobile app and still don't see a card. Kindly expedite.

 

Below is the json of the card being used.

 

{
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "Welcome to your Insyghts Bot."
    },
    {
      "type": "TextBlock",
      "text": "Type Menu to get a list of things I can do for you.",
      "wrap": true
    }
  ]
}

@RaghuRam_V - Are you facing this issue while sending the Adaptive Card from Developer Portal or from your Teams bot only?
I tried it from Developer Portal for now and it's working fine in iOS.
I will try it via sending the Card from bot as well and let you know the updates.

@ChetanSharma-msft The issue is while sending the adaptive cards from the bot. 

@RaghuRam_V -We are checking the scenario on IOS device. Card is showing on IOS device as well.
IOS Version -15.7.1
MicrosoftTeams-image (6).pngMicrosoftTeams-image (7).png


I encounter the same situation. The fact is that if the card contains columnset, it will run into the issue.

@Sayali-MSFT