AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

Applying SelectAction on Action.Submit throws error

Open shambhavisudmsft opened this issue 11 months ago • 5 comments

[Your detailed feedback here]


  • URL: https://adaptivecards.io/explorer/Container.html The follow through documentation given for SelectAction on Action.Submit does not work & throws an error.

Pasting the error as follows -

Error Message: Unable to parse the following response: {"info":"My submit action data"}. actionSubmitId is required to be present on the action. Error Code: AdaptiveCardResponseInvalid Conversation Id: 354a3840-7a40-41b6-906a-7929c6082ae1 Time (UTC): 2025-02-12T13:48:29.807Z

I happened to try out the Action.Execute option as well but it throws an error saying "action.submit" button not present.

It would be great if we could get a working samples for Action.submit & Action.execute being used with SelectAction

shambhavisudmsft avatar Feb 12 '25 13:02 shambhavisudmsft

@shambhavisudmsft - Could you please let me know if you are facing this issue in Teams. If yes, would it be possible for you to share which particular JSON example gives this issue?

Meghana-MSFT avatar Feb 13 '25 11:02 Meghana-MSFT

@shambhavisudmsft - Could you please let me know if you are facing this issue in Teams. If yes, would it be possible for you to share which particular JSON example gives this issue?

Hello, I am using this json in Copilot Studio.

{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.5", "body": [ { "type": "Container", "items": [ { "type": "TextBlock", "text": "Cool link" } ], "selectAction": { "type": "Action.OpenUrl", "tooltip": "Go to a url", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } }, { "type": "Container", "style": "emphasis", "items": [ { "type": "TextBlock", "text": "Emphasis link" } ], "selectAction": { "type": "Action.OpenUrl", "tooltip": "Go to a different url", "url": "https://msn.com" } }, { "type": "Container", "items": [ { "type": "TextBlock", "text": "Submit action" } ], "selectAction": { "type": "Action.Submit", "tooltip": "Submit action", "data": { "info": "My submit action data" } } } ] } When I click the submit action, it throws that error

Image

shambhavisudmsft avatar Feb 13 '25 12:02 shambhavisudmsft

@shambhavisudmsft - We are able to repro this issue, we will check this and get back to you.

Update: We raised a bug for this issue, we will keep you posted on the updates. Thank you.

Meghana-MSFT avatar Feb 18 '25 13:02 Meghana-MSFT

I have the same issue too, encountered the Error Message: Unable to parse the following response: {}. actionSubmitId is required to be present on the action.

I was trying to create using adaptive card Action.Submit button for user to indicate if they find the generative answers good or bad through a thumbs up or down button. I would like the user's feedback to be stored and able to retrieve from conversationtranscript subsequently. However, I do not want a response to be generated in the bot when user indicate their feedback. Not sure how I can achieve that.

thl456 avatar Apr 02 '25 05:04 thl456