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"
}
]
}