Collect Multiple Responses from Teams Adaptive Card Polls using Power Automate?

Jack Alvarez 5 Reputation points
2024-12-17T18:27:47.1566667+00:00

Title says it all. Is there a way to easily collect multiple responses from an Adaptive Card Poll sent in Teams to a group chat?

I see that there is a "Post Poll and wait for response" action, but I am not sure that it will handle multiple responses, and I do not want a flow waiting in the background for several days while a survey is being collected.

User's image

Microsoft Teams | Development
Microsoft Teams | Microsoft Teams for business | Other
{count} vote

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2024-12-18T09:33:33.53+00:00

    We tried using action 'Post adaptive card and wait for a response' and observed that it doesn't collect multiple responses. It only takes up the first response.
    User's image

    Card JSON:

    {
    
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    
        "type": "AdaptiveCard",
    
        "version": "1.0",
    
        "body": [
    
            {
    
                "type": "TextBlock",
    
                "text": "Poll Request",
    
                "id": "Title",
    
                "spacing": "Medium",
    
                "horizontalAlignment": "Center",
    
                "size": "ExtraLarge",
    
                "weight": "Bolder",
    
                "color": "Accent"
    
            },
    
            {
    
                "type": "TextBlock",
    
                "text": "Power Automate Poll",
    
                "id": "acHeaderTagLine",
    
                "separator": true
    
            },
    
            {
    
                "type": "TextBlock",
    
                "text": "Preferred Car Model",
    
                "weight": "Bolder",
    
                "size": "ExtraLarge",
    
                "spacing": "None",
    
                "id": "acHeader"
    
            },
    
            {
    
                "type": "TextBlock",
    
                "text": "We are polling our employees in order to determine if we should provide personalized parking places that are sized for the most popular cars. ",
    
                "id": "acInstructions",
    
                "wrap": true
    
            },
    
            {
    
                "type": "TextBlock",
    
                "text": "Please vote on your preferred car model from the choices listed here.",
    
                "id": "acPollQuestion"
    
            },
    
            {
    
                "type": "Input.ChoiceSet",
    
                "placeholder": "Select from these choices",
    
                "choices": [
    
                    {
    
                        "title": "Tesla",
    
                        "value": "Tesla"
    
                    },
    
                    {
    
                        "title": "Lexus",
    
                        "value": "Lexus"
    
                    },
    
                    {
    
                        "title": "Honda",
    
                        "value": "Honda"
    
                    }
    
                ],
    
                "id": "acPollChoices",
    
                "style": "expanded"
    
            }
    
        ],
    
        "actions": [
    
            {
    
                "type": "Action.Submit",
    
                "title": "Submit",
    
                "id": "btnSubmit"
    
            }
    
        ]
    
    }
    
    

    User's image

    We noticed in official documentation its clearly mentioned that,

    Adaptive cards created using the wait for response actions can only be submitted once per card. The flow run continues after the first response, and any further submissions are ignored.

    https://learn.microsoft.com/en-us/power-automate/overview-adaptive-cards#known-issues

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.