web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Can I use adaptive car...
Copilot Studio
Answered

Can I use adaptive cards to display and select the values of variables in the question function?

(0) ShareShare
ReportReport
Posted on by 7

We created 3 variables. Afterwards, I wrote the following in the question function properties with the adaptive card.

{
  type: "AdaptiveCard",
  version: "1.5",
  body: [
    {
      type: "TextBlock",
      text: "hello!!!",
      wrap: true,
      horizontalAlignment: "Center"
    },
    {
      type: "Container",
      items: [
        {
          type: "ActionSet",
          horizontalAlignment: "Center",
          actions: [
            {
              type: "Action.Excute",
              title: Topic.testKeyword1,
              id : "test1"
            }
          ]
        },
        {
          type: "ActionSet",
          horizontalAlignment: "Center",
          actions: [
            {
              type: "Action.Excute",
              title: Topic.testKeyword2,
              id : "test2"

            }
          ]
        },
        {
          type: "ActionSet",
          horizontalAlignment: "Center",
          actions: [
            {
              type: "Action.Excute",
              title: Topic.testKeyword3,
              id : "test3"
            }
          ]
        }
      ]
    }
  ]
}

However, nothing appears on the screen and no value is entered in actionSubmitId. Is there any way to solve this?

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

    Here is a sample that works - it should get you going:

     

    kind: AdaptiveDialog
    beginDialog:
     kind: OnRecognizedIntent
     id: main
     intent:
     triggerQueries:
     - dynamic card
    
     actions:
     - kind: SetVariable
     id: setVariable_iAxgu7
     variable: Topic.testKeyword1
     value: My Title
    
     - kind: SendActivity
     id: sendActivity_xX4y2P
     activity:
     attachments:
     - kind: AdaptiveCardTemplate
     cardContent: |-
     ={
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.5",
     body: [
     {
     type: "ActionSet",
     actions: [
     {
     type: "Action.Submit",
     title: Topic.testKeyword1
     }
     ]
     }
     ]
     }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 612

#2
chiaraalina Profile Picture

chiaraalina 161 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 116

Last 30 days Overall leaderboard