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 / How to set Variable on...
Copilot Studio
Unanswered

How to set Variable on adaptive card

(0) ShareShare
ReportReport
Posted on by 4

Hi Community,

So I have table on Copilot studio ,  would like to using on choiceset on adaptive card but somehow it not showing up

 

Is there any help please.

 

{
 type: "AdaptiveCard",
 '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
 version: "1.0",
 body: [
 {
 type: "Input.ChoiceSet",
 id: "input1",
 style: "compact",
 isMultiSelect: false,
 label: "Select a Department",
 choices: ForAll(Topic.departments_tb,[{
 title: name,
 value: name
 }])
 }
 ],
 actions: [
 {
 type: "Action.Submit",
 title: "Confirm Department"
 }
 ]
}
Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @non7775 ,

     

    Please try this

    {
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.0",
     body: [
     {
     type: "Input.ChoiceSet",
     id: "input1",
     style: "compact",
     isMultiSelect: false,
     label: "Select a Department",
     choices: ForAll(Topic.departments_tb,{
     title: name,
     value: name
     })
     }
     ],
     actions: [
     {
     type: "Action.Submit",
     title: "Confirm Department"
     }
     ]
    }

     

    I made a sample for you.

    vxiaochenmsft_0-1716519359982.png

    vxiaochenmsft_1-1716519386507.png

    vxiaochenmsft_2-1716519400808.png

     

    Best Regards,

    Wearsky

  • non7775 Profile Picture
    4 on at

    @v-xiaochen-msft  It works Thanks

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard