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 / "Post an adaptive card...
Power Automate
Unanswered

"Post an adaptive card to a Teams user and wait for a response" no longer available. Can't edit adaptive card.

(0) ShareShare
ReportReport
Posted on by 457

I started this flow a while back and need to expand on it. The action I've used before is no longer available, or has changed significantly. What's the work around for this and why is it far more difficult now than it used to be? Is Edit Adaptive Card permanently removed from PowerAutomate? (Totally not cool!)

 

Screen Shot 2021-10-05 at 9.16.09 AM.png

{
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "type": "AdaptiveCard",
 "version": "1.2",
 "body": [
 {
 "type": "TextBlock",
 "weight": "Bolder",
 "size": "ExtraLarge",
 "text": "An Employment Application has been submitted!",
 "color": "Attention"
 },
 {
 "type": "TextBlock",
 "text": "Hey Anthony, \n{$root.First} {$root.Last} just submitted a new Employment Application. ",
 "isSubtle": true,
 "wrap": true
 },
 {
 "type": "TextBlock",
 "text": "DETAILS \n\nName: {$root.First} {$root.Last}\n\nPhone: {$root.Mobile}\n\nEmail: {$root.Email}"
 }
 ],
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Cool",
 "id": "cool"
 },
 {
 "title": "Not Cool",
 "type": "Action.Submit",
 "id": "notcool"
 }
 ]
}

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @anthonys123 ,

    Build your adaptive card inside message property and  replace the variables from adaptive card with your powerautomate values (directly in message).

    Remove from message :

    {$root.First} 

    and replace it with: 

    outputs('YourActionForName')['body'] and so on ....

     

    Hope it helps !

  • anthonys123 Profile Picture
    457 on at

    Yes. Of course Microsoft's solution to complexity is to make things more difficult...  

    Thank you for the help. The correct expression seems to be @{outputs('Action_Name')} which you either need to know in your head or you can compose the expression and copy/paste it into the JSON. Not hard, but not intuitive or easy either. 

     

    Using outputs('YourActionForName')['body'] resulted in an error.  

    Unable to process template language expressions in action 'Post_adaptive_card_and_wait_for_a_response' inputs at line '1' and column '31415': 'The template language expression 'outputs('First_Name')['body']' cannot be evaluated because property 'body' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Yes ... I forgot to say that you need the expression tab from dynamic content to write the formula starting with outputs, but you get the catch. From my point of view is useful to see the entire code behind the adaptive card and I like the idea, so it's all about preferences. 

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 507 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard