Issue: "Something went wrong. Please try again." Error on Submit/Approve Button in Adaptive Card for Teams Bot
I'm encountering an issue with my Microsoft Teams bot where the adaptive card displays the error message "Something went wrong. Please try again." whenever I click the Submit or Approve button. Despite this error, the bot successfully receives a response from the backend.
Details:
Scenario: The issue occurs when attempting to submit a form or approve an item from a table using an Adaptive Card within a Teams bot.
Backend Response: The backend does return a response, but the adaptive card still throws the error.
Adaptive Card JSON: Below is the JSON code for the Adaptive Card used for form submission:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Please fill out the form below:"
},
{
"type": "Container",
"id": "createLeaveContainer",
"items": [
{
"type": "Container",
"id": "request",
"items": [
{
"type": "Input.ChoiceSet",
"id": "leaveType",
"style": "compact",
"choices": [
{
"title": "Vacation outside KSA",
"value": "VOUT"
},
{
"title": "Exit Re-entry Request Hol",
"value": "EXRL"
},
{
"title": "Vacation Inside KSA",
"value": "VIN"
}
],
"placeholder": "Select leave type"
},
{
"type": "Input.Date",
"id": "startDate",
"placeholder": "Select Start date"
},
{
"type": "Input.Date",
"id": "endDate",
"placeholder": "Select End date"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"action": "createLeave"
}
}
]
}