Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
  • MichielVanduren Profile Picture
    20 on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    @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?)

  • adilei Profile Picture
    on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    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

     

     

  • GeeteshSakalkar Profile Picture
    Microsoft Employee on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    @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.

  • adilei Profile Picture
    on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    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?

  • GeeteshSakalkar Profile Picture
    Microsoft Employee on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    @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? 

  • GeeteshSakalkar Profile Picture
    Microsoft Employee on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    @adilei : I used designer to create payload. Getting the same error. 

  • adilei Profile Picture
    on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    Are you getting the same error? Try using the designer to validate your payload

  • GeeteshSakalkar Profile Picture
    Microsoft Employee on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    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.

  • adilei Profile Picture
    on at
    Re: Getting action.submit value defined in table and pass on to condition with adaptive cards PVA with Copilot studio

    Probably because you have IDs missing for you actions (see below). BTW: the 1.6 schema is not supported for Copilot Studio

     

    adilei_0-1707303750039.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 33

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard