Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SharePoint News Adaptive Card
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"altText": "",
"url": "@{variables('BannerImageUrl')}",
"size": "Large"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "[@{triggerBody()?['Title']}](@{triggerBody()?['{Link}']})",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['Description']}",
"wrap": true
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "@{variables('AuthorPictureUrl')}",
"size": "Small",
"style": "Person"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "@{variables('AuthorDisplayName')}",
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"spacing": "None",
"text": "{{DATE(@{triggerBody()?['FirstPublishedDate']}, SHORT)}}",
"isSubtle": true,
"wrap": true
}
]
}
],
"separator": true,
"spacing": "ExtraLarge"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.