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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adaptive Card MS Teams...
Power Automate
Answered

Adaptive Card MS Teams response Dynamic content not showing in subsequent steps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have used the MS Teams Action to Post an Adaptive Card. I used the https://adaptivecards.io/designer/ to create my JSON Payload (see below). The Adaptive card is displayed in MS Teams and when I select one of the actions, the card is updated as expected. 

When I add a subsequent step in the flow, the variables received via the Output of the adaptive card are not available in the Dynamic Content list.

 

Any help or suggestions is appreciated.

Thank you in advance.

 

Kevin Clarke

 

Adaptive Card

2020-11-20 12_28_28-Flow _ Microsoft Teams.png

Outputs

2020-11-20 12_31_40-Run History _ Power Automate and 26 more pages - Work - Microsoft​ Edge.png

JSON Payload

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Time-b0t 🤖",
"weight": "Bolder",
"id": "Title",
"size": "Large"
},
{
"type": "TextBlock",
"text": "Please select all items you worked on in the last 30 minutes. Your time will split evenly between each you select. ",
"isSubtle": true,
"wrap": true,
"id": "acInstructions",
"size": "Large"
}
]
}
]
},
{
"type": "Input.ChoiceSet",
"placeholder": "Placeholder text",
"choices": [
{
"title": "TASK001 - IT Governance",
"value": "TASK001"
},
{
"title": "TASK002 - Portfolio Governance",
"value": "TASK002"
},
{
"title": "TASK003 - Out of office",
"value": "TASK003"
}
],
"style": "expanded",
"id": "BT3TimeLogged",
"isMultiSelect": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"data": {
"x": "submit"
},
"id": "1"
},
{
"type": "Action.Submit",
"title": "Snooze",
"data": {
"x": "snooze"
},
"id": "2"
},
{
"type": "Action.Submit",
"title": "Set Out-Of-Office",
"data": {
"x": "ooo"
},
"id": "3"
}
]
}

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I resolved it myself!

    2020-11-20 14_08_35-Edit your flow _ Power Automate and 27 more pages - Work - Microsoft​ Edge.png2020-11-20 14_07_55-Edit your flow _ Power Automate and 27 more pages - Work - Microsoft​ Edge.png

     

    Alternatively,

    Follow this article

    https://powerusers.microsoft.com/t5/Building-Flows/Processing-Reponses-to-adaptive-cards-in-Teams/m-p/456110

    After that is important to get that "submitActionId" when user responses (click on button in Teams chat). You do this with Compose like that: 

    Outputs('PostToTeams')['body']['submitActionId']

     

     

     

  • krishnakumar Profile Picture
    12 on at

    how did you resolve.. I have the same issue

  • krishnakumar Profile Picture
    12 on at

    krishnakumar_0-1645549444547.png

    post adaptive card details (which is ajson) is not appearing in dynamic variables in Post message step

  • kgleason Profile Picture
    20 on at

    Here's how I resolved it. I hope this is a more complete answer than I've been able to find.

     

    For testing, I built a manual flow that immediately called "Post adaptive card and wait for a response". 

     

    kgleason_0-1652804296213.png

     

    The adaptive card JSON looks like this:

    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "type": "AdaptiveCard",
     "version": "1.4",
     "body": [
     {
     "type": "ColumnSet",
     "columns": [
     {
     "type": "Column",
     "width": 2,
     "items": [
     {
     "type": "TextBlock",
     "text": "Testing Testing",
     "weight": "Bolder",
     "id": "Title",
     "size": "ExtraLarge"
     },
     {
     "type": "TextBlock",
     "text": "New test received from @{triggerOutputs()['headers']['x-ms-user-name-encoded']}: ",
     "isSubtle": true,
     "wrap": true,
     "id": "acInstructions",
     "size": "Medium"
     },
     {
     "type": "TextBlock",
     "text": "Boo",
     "wrap": true,
     "separator": true,
     "size": "Large"
     },
     {
     "type": "TextBlock",
     "wrap": true,
     "text": "Your Response"
     },
     {
     "type": "Input.Text",
     "placeholder": "Placeholder text",
     "id": "inputTextID"
     },
     {
     "type": "ActionSet",
     "actions": [
     {
     "type": "Action.Submit",
     "title": "Action.Submit",
     "id": "submitActionID"
     }
     ]
     }
     ]
     }
     ]
     }
     ]
    }

     

    A couple of key points in that JSON, the text field has an identifer of "inputTextID" and the submit action button has an identifer of "submitActionID". I used Designer | Adaptive Cards to make a simple card. By default those 2 components did not have an identifier associated with them. I also had to change the version in the JSON from the designer to 1.4.

     

    With that in hand, I ran the flow, and respoded in my testing channel. Then I grabbed the JSON fromt he body of the "Post adaptive card and wait for a response", and used it to generate a schema in a ParseJSON node:

     

    kgleason_1-1652804681434.png

     

    The content of the ParseJSON node is the following:

     

    body('Post_adaptive_card_and_wait_for_a_response')

     

    With that in place, if I add a Compose after ParseJSON, I can see the data from the Adaptive Card:

     

    kgleason_2-1652804851976.png

     

    I hope this helps someone. I spent way too long trying to figure it out, and only found incomplete answers out there.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard