Forum Discussion
sangeetha_pl
Apr 27, 2022Copper Contributor
send HTTP post to my API from ms-teams
We have configured a webhook connector to post messages to a teams channel The message is basically an Adaptive card with actual content and actions buttons. since we don't have any bot, I need a ...
Nivedipa-MSFT
Microsoft
May 17, 2022@sangeetha - Action.Submit is not supported for connector.
It works if we send card via bot action only.
Ref Doc: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL#send-adaptive-cards-using-an-incoming-webhook
Thanks,
Nivedipa
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.
- RbiaggioMar 10, 2023Copper Contributor
Sending an http post through Teams is not possible? I'm trying to make a post on an API I have. Expected body is below, but this is not working.
{ "@type":"ActionCard", "name":"Adicione um comentário", "inputs":[ { "@type":"TextInput", "id":"comment", "isMultiline":false, "title":"Adicione um comentário" } ], { "@type":"HttpPOST", "name":"Add comment", "target":"URL TENANT DYNATRACE/{PID}/comments?Api-Token=", "body": "message:={{comment.value}}", "bodyContentType":"application/json" } Expected body { "message": "string" }