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

Wayne Shih 6 Reputation points
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 Teams | Development
Microsoft Security | Microsoft Graph
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.