What you'll need:
- Microsoft Teams account with channel access
- Power Automate permissions
- Pinghome account with notification channel setup access



{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"@@context": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"summary": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"themeColor": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"sections": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"activityTitle": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"activitySubtitle": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"activityImage": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"facts": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"name": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"value": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
}
}
}
}
},
"text": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
}
}
}
}
},
"potentialAction": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"@@type": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"name": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"targets": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"os": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"uri": {
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{
"type": "Container",
"style": "@{if(equals(body('Parse_JSON')?['themeColor'], '#00FF00'), 'good', 'attention')}",
"bleed": true,
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "@{body('Parse_JSON')['sections'][0]['activityImage']}",
"size": "small"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "@{body('Parse_JSON')['sections'][0]['activityTitle']}",
"weight": "bolder",
"size": "large",
"color": "white"
},
{
"type": "TextBlock",
"text": "@{body('Parse_JSON')['summary']}",
"wrap": true
}
]
}
]
}
]
},
{
"type": "FactSet",
"facts": [
{
"title": "@{body('Parse_JSON')['sections'][0]['facts'][0]['name']}",
"value": "@{body('Parse_JSON')['sections'][0]['facts'][0]['value']}"
},
{
"title": "@{body('Parse_JSON')['sections'][0]['facts'][1]['name']}",
"value": "@{body('Parse_JSON')['sections'][0]['facts'][1]['value']}"
},
{
"title": "@{body('Parse_JSON')['sections'][0]['facts'][2]['name']}",
"value": "@{body('Parse_JSON')['sections'][0]['facts'][2]['value']}"
},
{
"title": "@{body('Parse_JSON')['sections'][0]['facts'][3]['name']}",
"value": "@{body('Parse_JSON')['sections'][0]['facts'][3]['value']}"
},
{
"title": "@{if(greater(length(body('Parse_JSON')?['sections'][0]?['facts']), 4), body('Parse_JSON')['sections'][0]['facts'][4]['name'], '')}",
"value": "@{if(greater(length(body('Parse_JSON')?['sections'][0]?['facts']), 4), body('Parse_JSON')['sections'][0]['facts'][4]['value'], '')}"
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "@{body('Parse_JSON')['potentialAction'][0]['name']}",
"url": "@{body('Parse_JSON')['potentialAction'][0]['targets'][0]['uri']}"
}
]
}

