MS Teams Adaptive Card - How to send a POST http request

Wayne Shih 1 Reputation point
2021-11-25T03:42:20.39+00:00

Hi Team,

I am wondering if Adative Card in MS Teams can trigger a http POST request after clicking submit button?

This is my Adaptive card Json format

{  
    "type": "AdaptiveCard",  
    "body": [  
        {  
            "type": "TextBlock",  
            "size": "Medium",  
            "weight": "Bolder",  
            "text": "${title}"  
        },  
        {  
            "type": "Input.Text",  
            "placeholder": "Placeholder text"  
        }  
    ],  
    "actions": [  
        {  
            "type": "Action.Submit",  
            "title": "Send POST",  
            "url": "${viewUrl}"  
        }  
    ],  
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",  
    "version": "1.4"  
}  

152426-image.png

btw, I want to trigger the http POST request with a body (like user typed text) directly, instead of via FLOW in Power Automate, is it possible to achieve this in Ms Teams?

much thanks for the help

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,669 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,877 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Meghana-MSFT 3,771 Reputation points Microsoft Vendor
    2021-11-25T08:48:52.477+00:00

    Adaptive Cards support the following four action types - Adaptive Cards actions

    Thanks,
    Meghana


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.