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

Community site session details

Session Id : q7tC2sA54SBEeBm75w+p2L
Power Automate - Using Flows
Unanswered

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

Like (1) ShareShare
ReportReport
Posted on 12 Jul 2024 19:29:47 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"
}

 

 

 

 

 

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 626 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 374 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 284 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow