Skip to main content

Notifications

Power Platform Community / Forums / General / How to set Variable on...
General
Unanswered

How to set Variable on adaptive card

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"
 }
 ]
}
  • non7775 Profile Picture
    non7775 4 on at
    Re: How to set Variable on adaptive card

    @v-xiaochen-msft  It works Thanks

  • Re: How to set Variable on adaptive card

    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

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,990

#3
Expiscornovus Profile Picture

Expiscornovus 1,700

Leaderboard