Forum Discussion
Adaptive Card not sending data on iOS Teams app
Hi there,
I´m experiencing an issue with an Adaptive Card not sending back any user entered data to the bot through Action.Execute. The action works in the browser, the Teams desktop app and the Teams app on Android. The only one that fails is the Teams app on iOS:
Version: 4.4.0
Build: 4.4.77.2022042801/0307 (general)
Release Branch: 2022Feb-T2
The card contains an input field defined this way:
{
"type": "Input.Text",
"placeholder": "Kommentar...",
"isMultiline": true,
"maxLength": 255,
"id": "InputComment",
"$when": "${$root.IsReply ==false}"
}
And action buttons defined this way:
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "Genehmigen",
"verb": "approve"
},
{
"type": "Action.Execute",
"title": "Ablehnen",
"verb": "deny"
}
],
"$when": "${$root.IsReply == false}"
}
]
}
In the OnInvokeActivityAsync method I'm trying to read the data from
turnContext.Activity.Value.action.data.InputComment
but that fails when the action was executed on iOS because then the action node doesn't contain the member 'data'.
As that doesn't happen on other platforms i suspect a bug in the Teams iOS app.
Is there anything I can do to mitigate this?
- Sayali-MSFTMicrosoftChristian Walling - We are looking into this I will get back to you soon.
- Sayali-MSFTMicrosoftChristian Walling - Could you please share any sample or manifest which you refer so we can try it from our end?
- Christian WallingCopper Contributor
I attached the json for the Adaptive Card and hope that this is the manifest you're looking for.