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

Add topic or global variable inside adaptive card

(1) ShareShare
ReportReport
Posted on by 26

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)
  • 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.
  • jamesbio Profile Picture
    29 on at

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

  • 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

  • JM78 Profile Picture
    26 on at

    Worked like a charm !

    Thx for help

  • Verified answer
    HenryJammes Profile Picture
    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

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

#1
Valantis Profile Picture

Valantis 330

#2
chiaraalina Profile Picture

chiaraalina 124

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 102 Super User 2025 Season 2

Last 30 days Overall leaderboard