Skip to content
Docs

Teams step: send a message to a channel

Send a message to a Microsoft Teams channel through a webhook from the channel's Workflows or the older connector. How to set it up, and the step's limits.

Updated

Send a Teams message sends a message to one Microsoft Teams channel through a webhook you create in Teams.

How to set it up

  1. In Teams, open the channel's ⋯ menu → Workflows, pick Post to a channel when a webhook request is received, finish the short setup and copy the URL it shows at the end. The older Incoming Webhook connector's URL works too, while Microsoft still runs it.
  2. In Foliot, add a Teams webhook under Connections and paste the URL. It's stored encrypted. If the workflow is deleted in Teams later, the connection shows Needs reconnecting, you get one email, and Replace webhook URL takes the new one without touching your steps.
  3. Add a Send a Teams message step, choose the connection and write the Message, inserting data with + Data. Teams formatting works: **bold**, _italic_ and [links](https://…).
  4. Test this step posts a real message.

Limits

  • Up to 8,000 characters per message. The message is sent as a card with one block of text.
  • The message goes to the channel the webhook was made for. To post somewhere else, make another webhook.
  • It only posts. Foliot can't read Teams messages, reply in threads or act as a bot.
  • Teams accepts the message right away and posts it a moment later, so a wrong channel or a paused workflow shows up in Teams, not as a failed step.
  • When Teams is rate limiting, or can't be reached at all, the step is retried after 30 seconds, 2 minutes and 10 minutes. After a timeout or a Teams server error the message may already be there, so the step fails and asks you to check Teams instead of sending it twice.