web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft Teams Workflow
Power Automate
Suggested Answer

Microsoft Teams Workflow

(1) ShareShare
ReportReport
Posted on by 2

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!

 

Categories:
I have the same question (0)
  • Suggested answer
    AS-09101135-0 Profile Picture
    2 on at
    You need to use the adaptive card payload (http://adaptivecards.io/schemas/adaptive-card.json
    For example:
    {
        "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"
    }
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard