Aug 15 2024 12:26 PM
I'm having trouble making a POST request from a button in a message card on our intranet Teams environment. When I click the button to execute the request, it doesn't seem to have any effect.
My question is: Does the HttpPOST method work within an intranet environment, or does Teams attempt to make this request in a public-facing environment?
My message card:
{
"@context": "https://schema.org/extensions",
"@type": "MessageCard",
"themeColor": "FFB900",
"title": "some title",
"text": "some text",
"potentialAction": [
{
"@type": "HttpPOST",
"name": "Task completed",
"target": "<INTRANET_URL>",
"body": "<BODY>",
"headers": [
{
"Content-Type": "application/json"
}
]
}
]
}
Aug 15 2024 12:39 PM
Aug 16 2024 12:29 AM
@mateusmoov -
Thanks for reporting your issue.
We will check this at our end and will get back to you.
Aug 16 2024 02:53 AM
@mateusmoov - Microsoft Teams operates on the public internet and requires endpoints to be reachable from outside the local network. Therefore, if your URL is internal to your intranet, it will not be reachable by Teams.