Created
August 18, 2019 11:51
-
-
Save justinyoo/4030dd4fa2f2875905c770d8013d6856 to your computer and use it in GitHub Desktop.
Two Ways Building MS Teams Custom Connector with Logic Apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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']}" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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