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

Community site session details

Session Id : hMwUfroml5ad6CVf7KrgOx
Copilot Studio - Topic Creation & Management
Unanswered

Dynamic adaptive cards

Like (1) ShareShare
ReportReport
Posted on 18 Jul 2023 09:16:51 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)
  • Yogesh3097 Profile Picture
    24 on 02 Aug 2023 at 07:17:10
    Re: Dynamic adaptive cards

    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

  • JGT Profile Picture
    32 on 25 Jul 2023 at 12:48:14
    Re: Dynamic adaptive cards

    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 25 Jul 2023 at 11:25:49
    Re: Dynamic adaptive cards

    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

  • HenryJammes Profile Picture
    on 24 Jul 2023 at 18:14:40
    Re: Dynamic adaptive cards

    Hi @Yogesh3097 

     

    Have a look at these:

     

    henry

  • JGT Profile Picture
    32 on 24 Jul 2023 at 11:27:29
    Re: Dynamic adaptive cards

    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!

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics