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 / Copilot Studio / How to display variabl...
Copilot Studio
Suggested Answer

How to display variable content in Topic Adaptive Card

(0) ShareShare
ReportReport
Posted on by
Hi guys,
 
In my Topic, I want to add Adaptive Card for displaying my variables. Here is my last attempt:
1. Add node : Show message and change to Adaptive Card
2, Initially in property, I'm using JSON and then put the JSON schema in its editor., but then now I'm change it to Formula and put again the JSON in it
 
It is similar like this (with the result which not working)
 
Here is the JSON:
{
  '$schema': "https://adaptivecards.io/schemas/adaptive-card.json",
  type: "AdaptiveCard",
  version: "1.5",
  body: [
    {
      type: "TextBlock",
      text: "📊 Overdue Work Order Rate",
      weight: "Bolder",
      size: "Large",
      spacing: "Medium"
    },
    {
      type: "FactSet",
      facts: [
        {          
          title: "Total Work Orders",
          value: "${TotalWorkOrders}"        
        }
      ]
    }
  ],
  actions: [
    {
      type: "Action.Submit",
      title: "View Details",
      data: {
        action: "view_details"
      }
    },
    {
      type: "Action.Submit",
      title: "Done",
      data: {
        action: "done"
      }
    }
  ]
}
 
 
If you can see from the screenshot, I tried to print my variable TotalWorkOrders, several time it its predecessor node, to ensure it has value. But turn out in Adaptive car cannot display it. It will print the placeholder (variable name) literally instead its value.
 
How actually to display this variable ?
 
Thanks,
I have the same question (0)
  • Suggested answer
    Arild Aarnes Profile Picture
    558 Super User 2026 Season 1 on at
    Hi @Teevo,
     
    You should reference your variable using Topic.TotalWorkOrders if it's a Topic variable, or Global.TotalWorkOrders if it's a global variable.
    Replace your "${TotalWorkOrders}"  with Text(Topic.TotalWorkOrders), and it should work fine.
    It will not display the value in the topic editor but should show the value in the test panel
     
     
    Regards,
    Arild

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 > Copilot Studio

#1
Valantis Profile Picture

Valantis 645

#2
Vish WR Profile Picture

Vish WR 300

#3
Haque Profile Picture

Haque 219

Last 30 days Overall leaderboard