web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get and save ad...
Power Automate
Unanswered

How to get and save adaptive card responses to a list

(0) ShareShare
ReportReport
Posted on by 61

I have made a flow for when a new item is created it sends an adaptive card to teams where someone can respond. I have used the "Post adaptive card and wait for a response" connector and that sends the card fine in teams but how do I get the response. On the adaptive card it has 2- 3 buttons (depending on the type it can have different options) and can have 1 - 2 input boxes how do I get the comments from the input boxes and save it in a list. Thank you in advance. 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Dave373927 ,

     

    I made a sample for you:

     

    Create a list in sharepoint. ‘Text1’ and ‘Text2’ match text input in adaptive card, and Choices match buttons in adaptive card.

    vxiaochenmsft_0-1669180873135.png

     

     

    Create a flow.

    vxiaochenmsft_1-1669180873138.png

     

     

    Trigger a flow when a new item is created.

    vxiaochenmsft_2-1669180873139.png

     

     

    Use “Post adaptive card and wait for a response” to send cards to Teams.

    vxiaochenmsft_3-1669180873141.png

     

    vxiaochenmsft_4-1669180873143.png

     

     

    Add the action Update item to save the contents of the response to the list.

    vxiaochenmsft_5-1669180873146.png

     

     

    Save and create a new item with Title is ‘1’ in the list. And fill in the card after triggering the flow.

    vxiaochenmsft_6-1669180873152.png

     

     

    The same content is saved in the list.

    vxiaochenmsft_7-1669180873153.png

    Best Regards,

    Wearsky

  • Dave373927 Profile Picture
    61 on at

    Hello Thank you for your reply, I have no options for this when I try. I have no options on anything with the Adaptive Cards but I do when I use the sample Adaptive Card what could be wrong with my code.

     

    {

        "type": "AdaptiveCard",

        "body": [

            {

                "type": "TextBlock",

                "size": "Medium",

                "weight": "Bolder",

                "text": "Title"

            },

            {

                "type": "ColumnSet",

                "columns": [

                    {

                        "type": "Column",

                        "items": [

                            {

                                "type": "TextBlock",

                                "weight": "Bolder",

                                "text": "}Created by - ",

                                "wrap": true

                            },

                            {

                                "type": "TextBlock",

                                "spacing": "None",

                                "text": "Date Created - ",

                                "isSubtle": true,

                                "wrap": true

                            }

                        ],

                        "width": "stretch"

                    }

                ]

            },

            {

                "type": "FactSet",

                "facts": [

                    {

                        "title": "Type ",

                        "value": ""

                    },

                    {

                        "title": "Location",

                        "value": ""

                    },

                    {

                        "title": "Product",

                        "value": ""

                    },

                    {

                        "title": "Order No",

                        "value": ""

                    },

                    {

                        "title": "User",

                        "value": ""

                    },

                    {

                        "title": "Required by",

                        "value": ""

                    }

                ]

            },

            {

                "type": "TextBlock",

                "text": "Cause:",

                "wrap": true,

                "spacing": "None",

                "fontType": "Default",

                "size": "Medium",

                "weight": "Bolder",

                "isSubtle": true

            },

            {

                "type": "TextBlock",

                "text": "Cause Text",

                "wrap": true,

                "spacing": "Small",

                "fontType": "Default",

                "size": "Default",

                "weight": "Default",

                "color": "Default",

                "isSubtle": false

            },

            {

                "type": "TextBlock",

                "text": "Reason:",

                "wrap": true,

                "spacing": "Small",

                "fontType": "Default",

                "size": "Medium",

                "weight": "Bolder",

                "isSubtle": false

            },

            {

                "type": "TextBlock",

                "text": "Reason Text",

                "wrap": true,

                "fontType": "Default",

                "size": "Default",

                "spacing": "Small",

                "weight": "Default",

                "isSubtle": false

            }

        ],

        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",

        "version": "1.4",

        "actions": [

            {

                "type": "Action.ShowCard",

                "title": "Allowed",

                "card": {

                    "type": "AdaptiveCard",

                    "body": [

                        {

                            "type": "Input.Text",

                            "placeholder": "Comments",

                            "style": "Tel",

                            "isMultiline": true,

                            "id": "A_Comments"

                        }

                    ],

                    "actions": [

                        {

                            "type": "Action.Submit",

                            "title": "Confirm"

                        }

                    ]

                }

            },

            {

                "type": "Action.ShowCard",

                "title": "Maybe",

                "card": {

                    "type": "AdaptiveCard",

                    "body": [

                        {

                            "type": "Input.Text",

                            "placeholder": "Comments",

                            "isMultiline": true,

                            "id": "M_Comments"

                        }

                    ],

                    "actions": [

                        {

                            "type": "Action.Submit",

                            "title": "Confirm"

                        }

                    ]

                }

            },

            {

                "type": "Action.ShowCard",

                "title": "Rejected",

                "card": {

                    "type": "AdaptiveCard",

                    "body": [

                        {

                            "type": "Input.Text",

                            "placeholder": "Comments",

                            "isMultiline": true,

                            "id": "R_Comments"

                        }

                    ],

                    "actions": [

                        {

                            "type": "Action.Submit",

                            "title": "Confirm"

                        }

                    ]

                }

            }

        ]

    }

     

     

    Thank you in advance. 

  • Dave373927 Profile Picture
    61 on at

    Sorted now!

  • nrenfro Profile Picture
    4 on at

    what was the issue? I am having the same problem with the dynamic content not showing

  • CaueParaguassu Profile Picture
    2 on at

    Try to use an adaptive card version greater than 1.3

    I was hadling with the same issue when I changed for the 1.4 it was solved!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard