Feb 09 2022 10:35 AM
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!
Feb 10 2022 09:09 PM
Feb 14 2022 01:31 AM
Feb 14 2022 09:05 AM
May 31 2022 10:33 PM
Nov 10 2022 06:24 AM
@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.
Nov 10 2022 10:18 AM - edited Nov 10 2022 10:21 AM
@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.
Nov 10 2022 11:24 AM
@ChetanSharma-msft The issue is while sending the adaptive cards from the bot.
Nov 14 2022 05:03 AM
@RaghuRam_V -We are checking the scenario on IOS device. Card is showing on IOS device as well.
IOS Version -15.7.1
Dec 13 2022 07:25 PM
I encounter the same situation. The fact is that if the card contains columnset, it will run into the issue.