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 / Add topic or global va...
Copilot Studio
Answered

Add topic or global variable inside adaptive card

(1) ShareShare
ReportReport
Posted on by 28

Hi, 

I have many topic variables and global variables and i'm trying to add both on an adaptive card i've created.

I've tried many ways and try to find google help whitout success. Here's the example of what i want :

JM78_0-1689164337684.png

 

Is there a way to integrate topic or global variables inside an adaptive card ? If Yes, what's the correct syntax ?

 

Many thx

Categories:
I have the same question (0)
  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Yes, @JM78, this is possible when you switch from JSON to Formula on your adaptive card.
    You can then reference variables with Topic.YourVariable or Global.YourVariable

  • JM78 Profile Picture
    28 on at

    Worked like a charm !

    Thx for help

  • Javiavan Profile Picture
    30 on at

    Hello,
    Could you tell me how the code should look in the formula view?
    And if you can tell me where I can get information about this, that would be great.
    Thank you

  • jamesbio Profile Picture
    29 on at

    Whenever I need an answer and search, I almost always find yours. Worked like a charm. Thanks.

  • Suggested answer
    CU07011947-0 Profile Picture
    2 on at
    This thread seems to be the one that rises to the top but I still had to fight with code to make the thing work... I had to work around the value to be after switching to formula card:
     
    value: Text(Topic.VariableName)
     
    That pushed the text value into the card when called in the chat.

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 410

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 160 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 63 Super User 2026 Season 1

Last 30 days Overall leaderboard