Skip to content

Instantly share code, notes, and snippets.

@YannickRe
Created July 27, 2019 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YannickRe/a5300332db5d6c21a36bbb568f15f24a to your computer and use it in GitHub Desktop.
Save YannickRe/a5300332db5d6c21a36bbb568f15f24a to your computer and use it in GitHub Desktop.
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