Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Adaptive Card actions in Teams work with new card but not updated card

(1) ShareShare
ReportReport
Posted on by

Hello,

 

I have an adaptive card that posts to a Team's channel when a new sharepoint item is created using the "Post card in a chat or channel" action. I post this card with the JSON below and using a Card Type ID of "Test". This adaptive card has a number of Action.Submit buttons on it. Upon the initial posting of the card, the action buttons work when clicked in Teams; I can successfully capture the submit action in power automate using a "When someone responds to an adaptive card" trigger and specifying the Card Type ID to be "test".

 

The problems arise after I update the card using "Update an adaptive card in a chat or channel". After the card updates the Action.submit buttons fail to work, yielding a "Unable to reach app. Please try again." error in Teams and no submit action is detected by my When someone responds to an adaptive card" trigger.  As a test I have been having the update action post the EXACT same JSON as the initial "Post card in a chat or channel" action to rule that out as a potential cause.

 

One final remark: I have noted that "Update an adaptive card in a chat or channel" does not allow you to define the Card Type ID. I presumed this is because it would use the original Card Type ID but I cant be sure and I am unsure if its related to my issue.

 

Unsure where to go from here. Appreciate any and all help.

 

 

 

 

 

 

{
 "type": "AdaptiveCard",
 "body": [
 {
 "type": "Container",
 "id": "statusBanner",
 "bleed": true,
 "spacing": "None",
 "style": "good",
 "items": [
 {
 "type": "ColumnSet",
 "columns": [
 {
 "type": "Column",
 "items": [
 {
 "type": "TextBlock",
 "text": "TRADE",
 "weight": "Bolder",
 "size": "Large",
 "horizontalAlignment": "Left"
 }
 ]
 },
 {
 "type": "Column",
 "width": "stretch",
 "items": [
 {
 "type": "TextBlock",
 "text": "New",
 "weight": "Bolder",
 "horizontalAlignment": "Right",
 "size": "Large"
 }
 ]
 }
 ]
 }
 ]
 },
 {
 "type": "ColumnSet",
 "columns": [
 {
 "type": "Column",
 "items": [
 {
 "type": "TextBlock",
 "weight": "Bolder",
 "horizontalAlignment": "Left",
 "size": "Medium",
 "text": "Jeff Daanen"
 }
 ]
 },
 {
 "type": "Column",
 "width": "auto",
 "items": [
 {
 "type": "TextBlock",
 "spacing": "None",
 "horizontalAlignment": "Right",
 "size": "Medium",
 "text": "Modified {{DATE(2024-07-12T16:50:28Z, SHORT)}} {{TIME(2024-07-12T16:50:28Z)}}",
 "isSubtle": true
 }
 ]
 }
 ]
 },
 {
 "type": "ColumnSet",
 "separator": true,
 "columns": [
 {
 "type": "Column",
 "width": "stretch",
 "items": [
 {
 "type": "FactSet",
 "facts": [
 {
 "title": "Loads:",
 "value": "1"
 },
 {
 "title": "Delivery Dates:",
 "value": "On PO"
 }
 ]
 }
 ]
 }
 ]
 }, {
 "type": "Container",
 "id": "detailsContainer",
 "isVisible": false,
 "separator": true,
 "items": [
 {
 "type": "ColumnSet",
 "separator": true,
 "columns": [
 {
 "type": "Column",
 "width": "stretch",
 "items": [
 {
 "type": "FactSet",
 "facts": [
 {
 "title": "International Sale?",
 "value": "False"
 },
 {
 "title": "Storage Temp",
 "value": "34"
 }]
 }
 ]
 }
 ]
 }
 ],
 "spacing": "Large"
 }, {
 "type": "Container",
 "items": [
 {
 "type": "ColumnSet",
 "columns": [
 {
 "type": "Column",
 "width": "auto",
 "items": [
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.ToggleVisibility",
 "title": "Show Details",
 "targetElements": [
 "detailsContainer"
 ]
 }
 ],
 "spacing": "Small"
 }
 ]
 },
 {
 "type": "Column",
 "width": "auto",
 "items": [
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.OpenUrl",
 "title": "SharePoint Link",
 "url": "https://sharepoint.com/sites/XYZ"
 }
 ],
 "spacing": "Small"
 }
 ]
 },
 {
 "type": "Column",
 "width": "auto",
 "items": [
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.ToggleVisibility",
 "title": "Show Actions",
 "targetElements": [
 "actionsContainer"
 ]
 }
 ],
 "spacing": "Small"
 }
 ]
 }
 ]
 }
 ]
 },
 {
 "type": "Container",
 "id": "actionsContainer",
 "isVisible": false,
 "items": [
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Mark Entered",
 "id": "submitEntered",
 "data": {
 "tradeID": "3134",
 "action": "submitEntered"
 }
 },
 {
 "type": "Action.ToggleVisibility",
 "title": "Mark Pending",
 "targetElements": [
 "markPendingContainer"
 ]
 },
 {
 "type": "Action.ToggleVisibility",
 "title": "Add Reminder",
 "targetElements": [
 "reminderDateContainer"
 ]
 }
 ],
 "spacing": "Small"
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.ToggleVisibility",
 "title": "Add Order Numbers",
 "targetElements": [
 "addOrderContainer"
 ]
 },
 {
 "type": "Action.ToggleVisibility",
 "title": "Request Change",
 "targetElements": [
 "requestChangeContainer"
 ]
 }
 ]
 }
 ]
 },
 {
 "type": "Container",
 "id": "markPendingContainer",
 "isVisible": false,
 "items": [
 {
 "type": "Input.Text",
 "id": "textPending",
 "placeholder": "Add pending reason details"
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit Pending",
 "id": "submitPending",
 "data": {
 "tradeID": "3134",
 "action": "submitPending"
 }
 }
 ]
 }
 ]
 },
 {
 "type": "Container",
 "id": "addOrderContainer",
 "isVisible": false,
 "items": [
 {
 "type": "Input.Text",
 "id": "textTradeOrder",
 "placeholder": "Add order numbers for this trade"
 },
 {
 "type": "Input.Text",
 "id": "textPairedOrder",
 "placeholder": "Add order numbers paired to this trade"
 },
 {
 "type": "Input.Text",
 "id": "textCustomerOrder",
 "placeholder": "Add customers order numbers for this trade"
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit Order #'s",
 "id": "submitOrders",
 "data": {
 "tradeID": "3134",
 "action": "submitOrders"
 }
 }
 ]
 }
 ]
 },
 {
 "type": "Container",
 "id": "requestChangeContainer",
 "isVisible": false,
 "items": [
 {
 "type": "Input.Text",
 "id": "textChange",
 "placeholder": "Add change request details"
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit Change",
 "id": "submitChange",
 "data": {
 "tradeID": "3134",
 "action": "submitChange"
 }
 }
 ]
 }
 ]
 }, 
 {
 "type": "Container",
 "id": "reminderDateContainer",
 "isVisible": false,
 "items": [
 {
 "type": "Input.Date",
 "id": "reminderDateSelect"
 },
 {
 "type": "Input.Text",
 "id": "textReminder",
 "placeholder": "Describe your reminder"
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit Reminder",
 "id": "submitReminderDate",
 "data": {
 "tradeID": "3134",
 "action": "submitReminderDate"
 }
 }
 ]
 }
 ]
 }
 ],
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.4"
}

 

 

 

 

 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics

Restore a deleted flow