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'], '#FF0000'), 'attention', if(equals(body('Parse_JSON')?['themeColor'], '#00FF00'), 'good', 'default'))}",
"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",
"isVisible": "@{string(not(equals(body('Parse_JSON')?['sections']?[0]?['facts'], null)))}",
"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(coalesce(body('Parse_JSON')?['sections']?[0]?['facts'], json('[]'))), 4), body('Parse_JSON')?['sections']?[0]?['facts']?[4]?['name'], '')}",
"value": "@{if(greater(length(coalesce(body('Parse_JSON')?['sections']?[0]?['facts'], json('[]'))), 4), body('Parse_JSON')?['sections']?[0]?['facts']?[4]?['value'], '')}"
}
]
}
],
"actions": @{if(equals(body('Parse_JSON')?['potentialAction'], null), json('[]'), json(concat('[{"type":"Action.OpenUrl","title":"', coalesce(body('Parse_JSON')?['potentialAction']?[0]?['name'], 'View'), '","url":"', coalesce(body('Parse_JSON')?['potentialAction']?[0]?['targets']?[0]?['uri'], ''), '"}]')))}
}

