Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
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:
  • Verified answer
    Robulane Profile Picture
    on at
    Re: Using global variables in adaptive cards in power virtual agent

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard