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 / Dynamic adaptive cards
Copilot Studio
Unanswered

Dynamic adaptive cards

(1) ShareShare
ReportReport
Posted on by 24

Hello,

 

I need help in creating adaptive cards which are dynamic. The dynamic values has to be used in Input.choiceset and action.submit. 

 

So, please share two samples one for input.choiceset and another for action.submit.

@HenryJammes, Could you please help me out.

 

Regards

Yogesh

I have the same question (0)
  • JGT Profile Picture
    32 on at

    I have a power automate flow that does this with composing a variable, and posting in. the card is formatted like this:

     

    {
     "type": "AdaptiveCard",
     "body": [
     {
     "type": "TextBlock",
     "size": "large",
     "text": "Worktype Set to Must Change: Please update below",
     "weight": "Bolder",
     "wrap": true
     },
     {
     "type": "TextBlock",
     "size": "Medium",
     "weight": "Bolder",
     "text": "@{items('Apply_to_each')?['ticket']?['id']}- @{items('Apply_to_each')?['ticket']?['summary']}",
     "maxLines": 0,
     "wrap": true
     },
     {
     "type": "TextBlock",
     "text": "@{items('Apply_to_each')?['notes']}",
     "wrap": true
     },
     {
     "type": "Input.ChoiceSet",
     "placeholder": "New Work Type",
     "choices": [
     @{variables('worktypes')}
     {
     "title": "Do not use",
     "value": "2"
     }
     ],
     "id": "typeWord"
     }
     ],
     "actions": [
     {
     "type": "Action.Submit",
     "title": "Submit",
     "id": "submit"
     }
     ],
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.4"
    }

    The variable @{variables('worktypes')} is grabbed and formatted to a string in a previous step:

    JGT_0-1690198114364.png

    I'm not sure if this is what you mean exactly, and it may not be formatted perfectly for what you need in PVA. Maybe it's a start though!

     

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @Yogesh3097 

     

    Have a look at these:

     

    henry

  • Yogesh3097 Profile Picture
    24 on at

    Hello @HenryJammes ,

    Thanks for the reply.

    I parsed the data. I am having issues in using the data in adaptive card only. 

    Please refer the zipped file. Please let me know the solution.

     

     

    Regards

    Yogesh

  • JGT Profile Picture
    32 on at

    You have to format dynamic data to be the JSON format adaptive cards take. Use Power Automate to make variables that are formatted correctly. Then pass those variables to the adaptative card. 

    Create flows that post adaptive cards to Microsoft Teams - Power Automate | Microsoft Learn

  • Yogesh3097 Profile Picture
    24 on at

    Hello @HenryJammes,

     

    I am having difficulty in passing the variable into adaptive card. Please check the file which I have attached above for further details.

     

    Thanks

    Yogesh

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