Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created August 18, 2019 11:51
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 justinyoo/4030dd4fa2f2875905c770d8013d6856 to your computer and use it in GitHub Desktop.
Save justinyoo/4030dd4fa2f2875905c770d8013d6856 to your computer and use it in GitHub Desktop.
Two Ways Building MS Teams Custom Connector with Logic Apps
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Website Published to Netlify",
"sections": [
{
"activityImage": "https://raw.githubusercontent.com/devkimchi/Microsoft-Teams-Channel-Notification/master/images/published.png",
"activityTitle": "Published: @{triggerBody()['name']}",
"activitySubtitle": "[@{triggerBody()['url']}](@{triggerBody()['url']})",
"activityText": "@{triggerBody()['published_at']}"
}
]
}
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"speak": "Website Published to Netlify",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "Image",
"style": "default",
"url": "https://raw.githubusercontent.com/devkimchi/Microsoft-Teams-Channel-Notification/master/images/published.png",
"size": "small"
}
],
"width": "auto"
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"weight": "bolder",
"text": "Published: @{triggerBody().name}",
"wrap": true
},
{
"type": "TextBlock",
"text": "[@{triggerBody().url}](@{triggerBody().url})",
"wrap": true
},
{
"type": "TextBlock",
"text": "@{triggerBody().published_at}",
"wrap": true,
"isSubtle": true
}
],
"width": "stretch"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment