Forum Discussion
nidheeshbabu96
Jul 30, 2024Copper Contributor
Error while running Teams workflow for sending message to a channel by triggering webhook
Hi, I was using the incoming webhook connectors for sending messages to channels via webhooks. Recently heard that these connectors are no longer supported and need to use workflows. I had setup a w...
- Aug 29, 2024
@basharh190 , StoneE1085, sushantp1105 ,BrianA1775, MattJ1810, nidheeshbabu96, RCFTech
We tried to test this by creating a workflow and then by POSTing a payload to the webhook URL. The workflow sent the message successfully in desired team's channel.
Workflow:
Step:1Step:2
Step:3
Running cURL command:
Result:
basharh190
Aug 23, 2024Copper Contributor
We are also facing the same issue at our org, we cant use the old webhook because its deprecated and the new teams workflow webhooks are non functional.
Prasad_Das-MSFT
Microsoft
Aug 28, 2024basharh190 , StoneE1085, sushantp1105 ,BrianA1775, MattJ1810, nidheeshbabu96, RCFTech
We got update from engineering team stating that, it should not be triggered via the UI.
The way to test is by POSTing a payload to the webhook URL. The error message is badly misleading.
- nidheeshbabu96Aug 29, 2024Copper Contributor
Prasad_Das-MSFTI have been invoking workflows via HTTP requests, and while the requests return a success output (202 response), the message is not being delivered to the channel. Upon checking the run history of the workflow in Teams, I noticed that the runs are showing a failed status. Please find the screenshot attached for reference.
I would greatly appreciate your assistance in resolving this issue at the earliest, as it is having a significant impact on our operations. Your prompt attention to this matter would be highly valued.
- MattJ1810Aug 29, 2024Copper Contributornidheeshbabu96 This is the exact same failure I am running into as well
- Prasad_Das-MSFTAug 29, 2024
Microsoft
@basharh190 , StoneE1085, sushantp1105 ,BrianA1775, MattJ1810, nidheeshbabu96, RCFTech
We tried to test this by creating a workflow and then by POSTing a payload to the webhook URL. The workflow sent the message successfully in desired team's channel.
Workflow:
Step:1Step:2
Step:3
Running cURL command:
Result:- psrujanSep 20, 2024Copper Contributor
Prasad_Das-MSFT How do i render the html content in a message card while posting to a channel using webhooks it's ignoring the html and treating it as plain text
- sushantp1105Aug 29, 2024Copper ContributorThis still doesn't work. Please ask the engineering team to try it out and resolve the issue. Please escalate this ticket.
- kidhexaAug 29, 2024Copper ContributorPlease reopen - This is still occurring for me even though I am manually sending POST requests to the webhook.
Every scenario I am testing is failing. Please escalate this! - MattJ1810Aug 28, 2024Copper Contributor
Prasad_Das-MSFT Maybe i'm a unique case, but it's always failed for me even when not using the UI test/run feature. If I create a powershell script, I see it come into Teams but it fails to trigger the message and I get a failure in my email as well, which I assumed was the same reason the test was failing. Especially if I'm getting the email failure, that means my webhook is making it to the Teams service, and failing to progress through to the channel. I kind of doubt everyone on this chain also failed to try it with a legit webhook before posting in this thread but I could be wrong. basharh190 StoneE1085 sushantp1105 BrianA1775 nidheeshbabu96 RCFTech