Forum Discussion
mateusmoov
Aug 15, 2024Copper Contributor
httpPOST method in intranet
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"
}
]
}
]
}
- mianhassnat35Copper ContributorIt seems you're trying to execute an HTTP POST request from a button within a Teams message card on your intranet. The issue might be that Teams attempts to execute the request from a public-facing environment, which could lead to it not functioning correctly if your intranet is not accessible externally. Consider setting up an intermediary service that can securely relay the request between Teams and your intranet.
- Sayali-MSFTMicrosoft
mateusmoov -
Thanks for reporting your issue.
We will check this at our end and will get back to you.- Sayali-MSFTMicrosoft
@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.