
Hello everyone,
I am new to Microsoft Teams Workflows and I am trying to achieve the outcome where sending in a JSON payload to the "Post to a channel when a webhook request is received" flow and post it to the channel, either as an adaptive card or message.
I am not sure how the payload structure should be like for the flow and hence seeking some advice over here, thank you!
{
"attachments": [
{
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"body": [
{
"color": "Good",
"size": "ExtraLarge",
"text": "This is a chat",
"type": "TextBlock",
"weight": "Bolder"
},
{
"separator": true,
"text": "This is the chat text",
"type": "TextBlock",
"wrap": true
},
{
"color": "warning",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"spacing": "Medium",
"text": "Card Title - My Titile",
"type": "TextBlock",
"weight": "Bolder"
},
{
"separator": true,
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"type": "TextBlock",
"wrap": true
},
{
"facts": [
{
"title": "Fact 1",
"value": "Value 1"
},
{
"title": "Fact 2",
"value": "Value 2"
},
{
"title": "Fact 3",
"value": "Value 3"
}
],
"type": "FactSet"
},
{
"facts": [
{
"title": "Fact 2-1",
"value": "Value 2-1"
},
{
"title": "Fact 2-2",
"value": "Value 2-2"
},
{
"title": "Fact 2-3",
"value": "Value 2-3"
}
],
"type": "FactSet"
}
],
"type": "AdaptiveCard",
"version": "1.3"
},
"contentType": "application/vnd.microsoft.card.adaptive"
}
],
"type": "message"
}