Forum Discussion
Error while running Teams workflow for sending message to a channel by triggering webhook
- 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 , 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.
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