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 / Using global variables...
Copilot Studio
Answered

Using global variables in adaptive cards in power virtual agent

(0) ShareShare
ReportReport
Posted on by 6

Hi 

I want to ask the user a question, the question is a multiple choice question which has dynamic options so I have to use adaptive cards for that. How do I acccess my global variables inside the adaptive card ?
The choices for my question would be the global variables which are strings. 

 

How do I assign the title of a choice to my global variable string ? I tried using ${…} , but it doesn’t seem to work 

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

    Hi,


    You can use OptionSetInfo PowerFX function, e.g. OptionSetInfo(Topic.ClosedListVariable). This function will return the id of the option.

    You can also use Text() function to return the title of the option. By default Title == Id but it may not be the case in the future when PVA will support multi-lang bots.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 436

#2
chiaraalina Profile Picture

chiaraalina 145 Super User 2026 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 98 Moderator

Last 30 days Overall leaderboard