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 / Placeholders not worki...
Power Automate
Suggested Answer

Placeholders not working on "Post a card in a chat or a channel"

(0) ShareShare
ReportReport
Posted on by 4
Hello, 
 
In a "Post to a channel when a webhook request is received" as second action i created an adaptative card with placeholders
 
{
    "type": "AdaptiveCard",
    "version": "1.4",
    "body": [
        {
            "type": "TextBlock",
            "text":  "${summary}",
            "weight": "Bolder",
            "size": "Medium"
        },
        {
            "type": "TextBlock",
            "text": "meta-search-google.prod-nordics",
            "isSubtle": true,
            "wrap": true
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Target",
                    "value": "Deployment/meta-search-google.prod-nordics"
                },
                {
                    "title": "Failed checks threshold",
                    "value": "1"
                },
                {
                    "title": "Progress deadline",
                    "value": "180s"
                },
                {
                    "title": "Traffic routing",
                    "value": "Blue/Green"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"    
}
 
But when i send the JSON to the webhook
 
{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "themeColor": "0076D7",
  "summary": "meta-search-google.prod-nordics",
  "sections": [
    {
      "activityTitle": "New revision detected, progressing canary analysis.",
      "activitySubtitle": "meta-search-google.prod-nordics",
      "facts": [
        {
          "name": "Target",
          "value": "Deployment/meta-search-google.prod-nordics"
        },
        {
          "name": "Failed checks threshold",
          "value": "1"
        },
        {
          "name": "Progress deadline",
          "value": "180s"
        },
        {
          "name": "Traffic routing",
          "value": "Blue/Green"
        }
      ]
    }
  ]
}
 
I got ${summary} instead of meta-search-google.prod-nordics
 
 
What am i doing wrong ? Is it possible to use placeholders ? 
Categories:
I have the same question (0)
  • NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    Generally I don't suggest using templating data unless there is really a reason strong enough to.
     
    Any reason why you don't take data from the JSON (where you have "summary": "meta-search-google.prod-nordics") and put that into the adaptive card as dynamic content?
  • FG-29071317-0 Profile Picture
    4 on at
    @Nsl_Coder
     
    How do i do that ? I'm using al alert from canary deployments that sends that kind of JSON information, How do i create an AdaptativeCard where i can tell that i want that i want that paer fill with the value summary i got fromk the JSON ? I only find placeholders.
     
    Thank you
     
  • Suggested answer
    NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    the JSON information, you can use Parse JSON action on it, then all the properties become dynamic content that you can add directly to the adaptive card JSON.
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    So summary section should be a input field where user who receives the adaptive card fills in the data ?
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you! 

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard