cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NewUser22
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,415)