@Prasad-MSFT About 1 year ago, you begin did a answer in this link https://learn.microsoft.com/en-us/answers/questions/1365758/how-to-enable-microphone-icon-on-my-azure-bot-on-m but did'nt a continuate with this topic. I'd like to ask for you if you know how can we solve this problem (link).
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"
}
}
]
}
1 answer
Sort by: Most helpful
-
Marcos Antonio Machado De Barros Junior 0 Reputation points
2024-09-10T18:01:19.0733333+00:00