Tuesday, September 27, 2022
HomePowershellAdaptive Playing cards with Tables and Linebreaks in Microsoft Groups

Adaptive Playing cards with Tables and Linebreaks in Microsoft Groups


{
    "sort": "message",
    "attachments": [
        {
            "contentType": "application/vnd.microsoft.card.adaptive",
            "content": {
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                "type": "AdaptiveCard",
                "version": "1.2",
                "body": [
                    {
                        "type": "TextBlock",
                        "text": "Table usage with PSCustomObject 🔥",
                        "size": "Medium",
                        "weight": "Bolder",
                        "highlight": "False",
                        "italic": "False",
                        "strikeThrough": "False",
                        "wrap": true
                    },
                    {
                        "type": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Test",
                                        "weight": "Bolder",
                                        "color": "Accent",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "123",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "456",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "789",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "weight": "Bolder",
                                        "color": "Accent",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Tes1t",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test3",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "n",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False"
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "Desk utilization with OrderedDictionary 🤷‍♂️",
                        "measurement": "Medium",
                        "weight": "Bolder",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False",
                        "wrap": true
                    },
                    {
                        "sort": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Name",
                                        "weight": "Bolder",
                                        "color": "Accent",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Value",
                                        "weight": "Bolder",
                                        "color": "Accent",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "123",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Tes1t",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "456",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "789",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test3",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "n",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False"
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "Desk utilization with show as PSCustomObject ❤️",
                        "measurement": "Medium",
                        "weight": "Bolder",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False",
                        "wrap": true
                    },
                    {
                        "sort": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Test",
                                        "weight": "Bolder",
                                        "color": "Attention",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "123",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "456",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "789",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "weight": "Bolder",
                                        "color": "Attention",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Tes1t",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test2",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "Test3",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "Completely different instance",
                        "spacing": "ExtraLarge",
                        "measurement": "Giant",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False",
                        "isSubtle": true
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "n",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False"
                    },
                    {
                        "sort": "Container",
                        "objects": [
                            {
                                "type": "ColumnSet",
                                "columns": [
                                    {
                                        "type": "Column",
                                        "width": "auto",
                                        "items": [
                                            {
                                                "type": "Image",
                                                "url": "https://adaptivecards.io/content/cats/3.png",
                                                "size": "Medium",
                                                "alt": "Shades cat team emblem",
                                                "horizontalAlignment": "Center"
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "SHADES",
                                                "horizontalAlignment": "Center",
                                                "weight": "Bolder",
                                                "highlight": "False",
                                                "italic": "False",
                                                "strikeThrough": "False"
                                            }
                                        ]
                                    },
                                    {
                                        "sort": "Column",
                                        "width": "stretch",
                                        "objects": [
                                            {
                                                "type": "TextBlock",
                                                "text": "Sat, Aug 31, 2019",
                                                "horizontalAlignment": "Center",
                                                "highlight": "False",
                                                "italic": "False",
                                                "strikeThrough": "False",
                                                "wrap": true
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "Final",
                                                "spacing": "None",
                                                "horizontalAlignment": "Center",
                                                "highlight": "False",
                                                "italic": "False",
                                                "strikeThrough": "False"
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "45 - 7",
                                                "horizontalAlignment": "Center",
                                                "size": "ExtraLarge",
                                                "highlight": "False",
                                                "italic": "False",
                                                "strikeThrough": "False"
                                            }
                                        ],
                                        "spacing": "Medium",
                                        "separator": true
                                    },
                                    {
                                        "sort": "Column",
                                        "width": "auto",
                                        "objects": [
                                            {
                                                "type": "Image",
                                                "url": "https://adaptivecards.io/content/cats/2.png",
                                                "size": "Medium",
                                                "alt": "Skins cat team emblem",
                                                "horizontalAlignment": "Center"
                                            },
                                            {
                                                "type": "TextBlock",
                                                "text": "SKINS",
                                                "horizontalAlignment": "Center",
                                                "weight": "Bolder",
                                                "highlight": "False",
                                                "italic": "False",
                                                "strikeThrough": "False"
                                            }
                                        ],
                                        "spacing": "Medium",
                                        "separator": true
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "Lets convert Get-Course of into Adaptive Desk",
                        "spacing": "ExtraLarge",
                        "measurement": "Giant",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False",
                        "isSubtle": true
                    },
                    {
                        "sort": "TextBlock",
                        "textual content": "n",
                        "spotlight": "False",
                        "italic": "False",
                        "strikeThrough": "False"
                    },
                    {
                        "sort": "ColumnSet",
                        "columns": [
                            {
                                "type": "Column",
                                "width": "stretch",
                                "items": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Name",
                                        "horizontalAlignment": "Center",
                                        "weight": "Bolder",
                                        "color": "Good",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1Password",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1Password",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1Password",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1Password",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1Password-BrowserSupport",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "Id",
                                        "horizontalAlignment": "Center",
                                        "weight": "Bolder",
                                        "color": "Good",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "10168",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "11280",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "12180",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "18588",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "17224",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "CompanyName",
                                        "horizontalAlignment": "Center",
                                        "weight": "Bolder",
                                        "color": "Good",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "CPU",
                                        "horizontalAlignment": "Center",
                                        "weight": "Bolder",
                                        "color": "Good",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "7.03125",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1.40625",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "1038.75",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "3.765625",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "text": "0.828125",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            },
                            {
                                "sort": "Column",
                                "width": "stretch",
                                "objects": [
                                    {
                                        "type": "TextBlock",
                                        "text": "FileName",
                                        "horizontalAlignment": "Center",
                                        "weight": "Bolder",
                                        "color": "Good",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False"
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    },
                                    {
                                        "type": "TextBlock",
                                        "horizontalAlignment": "Center",
                                        "size": "Small",
                                        "highlight": "False",
                                        "italic": "False",
                                        "strikeThrough": "False",
                                        "separator": true
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "msteams": {
                    "width": "Full"
                }
            }
        }
    ]
}
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments