Skip to the page
DataMosaic

Docs · Connecting to data

Microsoft Teams

Let a workflow post a card to a Teams channel, through a flow in the Teams Workflows app.

A workflow that finds something posts a card to the channel your team already reads: what happened, the figures, and a button that opens it.

Microsoft Teams is under Connectors, in the group Team chat. The connector holds the channel's webhook address, and the Microsoft Teams node in Workflows uses it. A workflow stores nothing about Teams itself.

#Setting it up

Teams takes a webhook through a flow in its Workflows app. The Office 365 connectors that used to do it (addresses under webhook.office.com) were retired by Microsoft in May 2026 and no longer post anything.

  1. In Teams, open the channel's ⋯ menu and choose Workflows.
  2. Pick the template that posts to a channel when a webhook request is received. Name the flow, choose the team and the channel, and finish.
  3. Copy the address the flow gives you.

Then, in Mosaic:

FieldWhat goes in it
Workflow webhook addressThe address the flow gave you
ChannelOptional. Where the flow posts, as you would say it, such as IT Operations › Store alerts. It is only a label: the address decides the channel

The flow posts as the account that made it, so a shared account is the usual choice. Microsoft's own steps are in Create incoming webhooks with Workflows.

Send a test card posts a card saying Mosaic is connected to the channel, with what is in the form. If it arrives, the connector works. Nothing is saved until you press Save. An address from the retired connectors is flagged as you type it.

Anybody holding the address can post to the channel, so it is kept like a password: encrypted with the same key file as a data source password, and shown back as bullets.

With more than one Teams connector in a workspace, the node uses the first switched-on one by name.

On Mosaic Cloud, an address inside a private network cannot be reached. The Workflows app's addresses are Microsoft's public ones, so this only matters for a relay of your own.

#Teams and Post to chat

The Post to chat node still posts to any webhook, Teams included, with the address written in the node. The Microsoft Teams node is the one to use for Teams. The address stays with the connector, so nobody who can read the workflow can read it, and a card has a title, the item's fields and a button, where Post to chat sends a line of text.

#One card when a check finds something

  1. When a check finishes, with Start it set to When it finds differences or a rule fails.
  2. Microsoft Teams, with Title {{ $json.check }} found differences, Title colour Red, for something to act on, Text {{ $json.diff }} rows differ and {{ $json.missing }} are missing., and List these fields total, matched, diff, missing.

Button opens is {{ $json.link }} to start with, which is the run that When a check finishes hands on, so the button opens it. An item with no link gets no button.

Run is Once, for all items to start with, so forty stores out make one card, not forty. Set it to Once for each item to post one card per row. At most this many cards per run caps that at 25 to start with, 200 at most.

Teams accepts four posts a second from one flow. The node posts one card every 300 milliseconds, and when Teams asks it to slow down, it waits once and tries again.