Hi,
I am having adaptive card with below .json and exception.
I am able to get the text value for submit button in blue (Start Over & End Conversation) in the subsequent condition activity. But for submit button in red, I do not get any values in subsequent condition activity. Looking for help with the issue. Help is greatly appreciated.
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.6",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "MBIP workloads",
"weight": "Bolder",
"size": "ExtraLarge",
"spacing": "None",
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "This card presents workloads available in MBIP for reporting. Click on the option you need to view reports for.",
"spacing": "None",
"wrap": true,
"separator": true
},
{
"type": "TextBlock",
"text": "Note:-You should have group access approved to view reports.",
"wrap": true,
"style": "columnHeader",
"size": "Default",
"color": "Warning",
"weight": "Default",
"separator": true
}
]
}
]
},
{
"type": "FactSet",
"facts": [
{
"title": "MBIP product support",
"value": "MDE/MDI/MDA/M365D/CXE"
},
{
"title": "MBIP reports/measures available for products",
"value": "MDE/MDI/MDA/M365D/CXE"
}
],
"separator": true
},
{
"type": "Container",
"separator": true,
"items": [
{
"type": "Table",
"columns": [
{
"width": 1
},
{
"width": 1
}
],
"rows": [
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "A",
"tooltip": "A product",
"id": "idA"
}
]
}
],
"selectAction": {
"type": "Action.Submit",
"associatedInputs": "none",
"role": "Button"
}
},
{
"type": "TableCell",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "B",
"tooltip": "B product"
}
]
}
]
}
],
"separator": true
}
],
"separator": true
},
{
"type": "Table",
"columns": [
{
"width": 1
}
],
"rows": [
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "E",
"tooltip": "E"
}
]
}
]
}
]
}
],
"firstRowAsHeaders": false,
"separator": true
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Start over",
"tooltip": "Start's the chat from begining."
},
{
"type": "Action.Submit",
"title": "End conversation",
"tooltip": "Exit the chat."
}
],
"minHeight": "300px",
"rtl": false,
"backgroundImage": {
"fillMode": "Repeat"
}
}
--------------------------------------------------------------------------------------------------------------------------------------
Exception:
Error Message: Unable to parse the following response: {}. actionSubmitId is required to be present on the action. Error Code: AdaptiveCardResponseInvalid
@adilei @GeeteshSakalkar
I have a similar issue where I have created a table (populated from a Power Automate flow) in my adaptive card where each row has a submit button, see attachment.
I'm also using the data attribute on the submit button, to have as output a unique id which identifies the selected row.
But the behaviour is that when I select the button on a particular row, the output id is showed, but the flow doesn't continue with how I specified it in he topic.
I want to use the output of the adaptive card (the id), to be used as an input of another topic but that topic doesn't get fired.
Did you find a way to solve it?
Do you need to use a columnset instead of a table in the adaptive card? (Can do do the same things with a columnset as with a table?)
Are you using "Ask with adaptive card"? I've tried it myself and I'm getting a variable populated, and the submitted data does not trigger any other topic.
kind: AdaptiveDialog
beginDialog:
kind: OnRecognizedIntent
id: main
intent:
triggerQueries:
- ask with adaptive card
actions:
- kind: AdaptiveCardPrompt
id: LIrofE
card: |-
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "MBIP workloads",
"weight": "Bolder",
"size": "ExtraLarge",
"spacing": "None",
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "This card presents workloads available in MBIP for reporting. Click on the option you need to view reports for.",
"spacing": "None",
"wrap": true,
"separator": true
},
{
"type": "TextBlock",
"text": "Note:-You should have group access approved to view reports.",
"wrap": true,
"style": "columnHeader",
"size": "Default",
"color": "Warning",
"weight": "Default",
"separator": true
}
]
}
]
},
{
"type": "FactSet",
"facts": [
{
"title": "MBIP product support",
"value": "MDE/MDI/MDA/M365D/CXE"
},
{
"title": "MBIP reports/measures available for products",
"value": "MDE/MDI/MDA/M365D/CXE"
}
],
"separator": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Start over",
"tooltip": "Start's the chat from begining.",
"id": "a"
},
{
"type": "Action.Submit",
"title": "End conversation",
"tooltip": "Exit the chat.",
"id": "b"
}
],
"minHeight": "300px",
"rtl": false,
"backgroundImage": {
"fillMode": "Repeat"
}
}
output:
binding:
actionSubmitId: Topic.actionSubmitId
outputType:
properties:
actionSubmitId: String
@adilei :
Using data property with action submit in table it returns the value but do not enter the subsequent condition and check the text value, instead it looks for matching phrases in any topics and returns the topic based on phrase.
Whereas with action submit in columns works with text of the submit button and enters the subsequent condition.
There is some discrepancy in terms of Adaptive Card support between the test canvas and WebChat. From what I could see, WebChat does support tables as well. Not sure if it has to do with the schema version.
With regards to action submitted returning data - this is not a blocker, correct? It should be easy enough to use the data property. Unless I'm missing something?
@adilei : I was using table to add actions earlier, but changed it to column set and it is working.
But this is wierd why same action do not work the way it needs to be in table.
One more thing action submitted returns text value rather than id. Any inputs on it?
@adilei : I used designer to create payload. Getting the same error.
Are you getting the same error? Try using the designer to validate your payload
Thanks @adilei for reply.
I tried passing id's to the buttons already but it did not work. I minimized version to 1.5 and tried but it failed too.
Let me know if you have any thoughts on it.
Probably because you have IDs missing for you actions (see below). BTW: the 1.6 schema is not supported for Copilot Studio
Pablo Roldan
33
Romain The Low-Code...
25
stampcoin
10