cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Add dynamic table to adaptive card

Hi guys,

 

I have a HTML table that i send over email. Was wondering how i can move that to adaptive cards using columns.

 

The current HTML table has fixed header and dynamic rows. Then i used apply to each row to add them into my excel file.

How can i achieve something like this via adaptive cards if i want to have a table with fixed header and dynamic rows?

For now i can only achieve fixed header and fixed rows.

 

{
"Flow Display Name": @{items('Apply_to_each_Flow')?['properties']?['displayName']},
"Created By": @{body('Get_user_profile_(V2)')?['displayName']},
"Flow Creation Time": @{items('Apply_to_each_Flow')?['properties']?['createdTime']}
}

 

 

 

{
    "type""AdaptiveCard",
    "version""1.2",
    "body": [
        {
            "text""Important Email!",
            "type""TextBlock",
            "weight""Bolder",
            "color""Attention",
            "size""Large"
        },
        {
            "type""TextBlock",
            "text""Email Subject: @{triggerOutputs()?['body/subject']}"
        },
        {
            "type""ColumnSet",
            "columns": [
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""Flow Name",
                            "type""TextBlock"
                        }
                    ]
                },
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""Created By",
                            "type""TextBlock"
                        }
                    ]
                },
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""Creation Time",
                            "type""TextBlock"
                        }
                    ]
                }
            ]
        },
        {
            "type""ColumnSet",
            "columns": [
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""Flow Name A",
                            "type""TextBlock"
                        }
                    ]
                },
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""Created By Person A",
                            "type""TextBlock"
                        }
                    ]
                },
                {
                    "width""stretch",
                    "type""Column",
                    "items": [
                        {
                            "text""2021-01-25",
                            "type""TextBlock"
                        }
                    ]
                }
            ]
        }
    ],
    "actions": [
        {
            "type""Action.Submit",
            "title""Add to To-Do"
        }
    ]
}
0 REPLIES 0

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (29,019)