Skip to main content
ComponentsEngine
IntegrationMicrosoft Teams Workflow webhook
Availability2026.2 or later

Create a Teams Workflow

Generate the webhook URL

Distribution List

Post alerts and reports to a channel

Teams Templates

Write Adaptive Card templates

Troubleshooting

Fix common issues

Overview

GermainUX alerts can automatically be posted to Microsoft Teams channels as rich Adaptive Cards, allowing teams to receive and respond to critical events in real time. GermainUX alerts and reports can automatically be posted to Microsoft Teams channels. Messages can be triggered by:
  • SLA conditions
  • Reports
  • Scheduled executions
  • Other GermainUX automation events
Instead of a plain text line, the alert is delivered as an Adaptive Card with a severity header, key facts, an error summary, headline metrics, recommended actions, and buttons linking to the dashboard, logs, and incident.
Example of a GermainUX alert posted to Microsoft Teams

Example of a GermainUX alert posted to Microsoft Teams - GermainUX

Integration Overview

GermainUX integrates with Microsoft Teams through a Teams Workflow (Power Automate) webhook. When a configured condition occurs, GermainUX sends an HTTP POST containing an Adaptive Card to the workflow’s webhook URL, and the workflow posts the card to the selected channel. There are two ways to send cards to the webhook:
Alert fires (KPI or threshold breached)GermainUX HTTP POSTTeams Workflow webhookAdaptive Card posted to channel
Compared with the Slack integration, there is no app, bot token, or OAuth scope to manage. The webhook URL itself carries a signature that authorizes the post, so no Authorization header is required.
How an alert travels from GermainUX to Teams

How an alert travels from GermainUX to Teams - GermainUX

Microsoft is retiring the older Office 365 Connectors (“Incoming Webhook” connector) in Teams. Use the Workflows approach described here for all new integrations, and migrate existing connector-based webhooks to it.

Create a Teams Workflow

If you do not already have a webhook workflow for the destination channel:
1

Open the channel

In Microsoft Teams, open the team and hover over the standard channel that should receive alerts (for example, “Production Alerts”). Workflows can’t post to private channels.
2

Open Workflows

Click … (More options) next to the channel name and choose Workflows.
Opening Workflows from the channel menu

Opening Workflows from the channel menu - GermainUX

3

Select the webhook template

Select the template Send webhook alerts to a channel (in some tenants: Send webhook alerts from anyone to Teams or Post to a channel when a webhook request is received).
Selecting the webhook template

Selecting the webhook template - GermainUX

4

Name the workflow

Name the workflow, for example GermainUX - Production Alerts, confirm the Microsoft Teams connection, and click Next.
5

Choose the team and channel

Confirm the Team and Channel, then click Add workflow.
Choosing the team and channel

Choosing the team and channel - GermainUX

6

Copy the webhook URL

Copy the generated webhook URL. You will use it as the Webhook URL of a Distribution List member, or as the Path of an HTTP Action.If you lose the URL, you can find it again under Workflows > Manage, in the workflow’s trigger.
Copying the generated webhook URL

Copying the generated webhook URL - GermainUX

Leave Who can trigger the flow set to Anyone. Tenant-restricted triggers aren’t supported yet.
The workflow runs under the account of whoever created it, so alerts stop if that person leaves or loses access to the channel. For customer environments, create the workflow with a service account.

Example Teams Webhook Request

The following request posts a simple card to the Teams channel. Use it to confirm the workflow works before configuring GermainUX:
A successful request returns HTTP 202 Accepted. Note that 202 only means the workflow received the request; if the card is invalid the workflow run fails afterwards, so check the workflow’s run history in Teams (Workflows > Manage workflows) when a message does not appear.
Test message received in Teams

Test message received in Teams - GermainUX

Treat the webhook URL as a password: anyone who has it can post to the channel. Do not expose it in documentation, tickets, or logs.

Post Alerts and Reports Through a Distribution List

Add the Channel to a Distribution List

Add a member to the Distribution List, in the wizard or the configuration editor, with the type Microsoft Teams Channel: Every alert and report sent to that list now also posts to the channel. Emails to the other members of the list are still sent.

Make Sure the Template Has a Teams Version

Each alert or report template needs a Teams version to post to a channel:
  • In the template editor, switch to the Teams tab.
  • In the template wizard, use the Teams Template step.
The default SLA and SLA-RECOVERY templates already have a Teams version. For a working report example, look at the out-of-the-box test-report template. Its report generates sample data, so it doesn’t need any monitoring data. See Teams Template Guidelines before you edit a Teams template.

Test the Channel

  • Report: the easiest test uses test-report, which is disabled and unscheduled by default. Enable it, point it at your Distribution List, and run it manually.
  • Alert: trigger an SLA on a KPI whose alert sends to the list. The channel receives a red alert card and, for stateful KPIs, a green Resolved card when the incident clears.

Delivery Behavior

  • A template with no Teams version is skipped for channels, with a warning. A post that fails is handled the same way.
  • In both cases, emails are still sent and the action doesn’t fail. The warning appears in the action result details.
  • A successful post means Teams accepted it, not that the card rendered. If a card never shows up, check the workflow’s run history in Power Automate.
  • An alert’s own Quiet Time applies to channels. A user’s personal “mute this alert” does not.
  • Notification actions don’t post to Teams. Only alerts and reports do.

Teams Template Guidelines

Keep the following in mind when you edit the Teams version of a report or alert template:
  • Adaptive Card only: Teams templates are FreeMarker that outputs an Adaptive Card (JSON). Output only the card ("type": "AdaptiveCard" with a "version"), not the Teams message wrapper. There’s no title field.
  • Preview: the Teams preview checks the card JSON and shows errors. Microsoft’s Adaptive Cards Designer is handy for layout.
  • Escape values: escape every value you put inside a JSON string with ?json_string, for example "text": "${kpi.name?json_string}". One unescaped quote or newline breaks the whole card, and the post is skipped. cards.table() escapes its own output.
  • Tables: use cards.table() for tables, not tables. tables and charts produce HTML and don’t work in Teams.
  • No charts or attachments: Teams messages can’t include charts or file attachments. Link to the dashboard instead.
  • Includes: <#include> loads the Teams version of the included template. The shared SLA blocks (SLA-SUMMARY, SLA-ADDINFO, and others) don’t have one, so Teams templates must be self-contained.
The card size limit is about 28 KB:
  • The preview warns at 75% of the limit.
  • Anything over the limit isn’t posted; you get a warning instead.
  • cards.table() shows 20 rows by default, followed by a “+N more rows” row. Change it with maxRows(n).
  • Keep cards to a summary plus links.

Alternative: Post Alerts Through an HTTP Action

You can also post a custom Adaptive Card from an HTTP Action tied to a specific SLA. In the left menu, go to Settings > Automation > HTTP. This screen displays the available HTTP Actions and identifies those associated with SLAs. Select an existing action to edit it, or click + to open the HTTP Action wizard.

Step 1: Configure the Action

Enter: Click Next.
First page of the HTTP Action wizard

First page of the HTTP Action wizard - GermainUX

Step 2: Configure the HTTP Request

Important: Set Expected HTTP Response to 202, not 200. The Teams workflow webhook replies with 202 Accepted; leaving the Slack value of 200 makes GermainUX treat every successful post as a failure.
Use the following request body. It produces the full alert card and uses the GermainUX context variables ${context.kpi.name} and ${context.displayValue} to insert live alert data:
Second page of the HTTP Action wizard

Second page of the HTTP Action wizard - GermainUX

Step 3: Select the Trigger

Select the SLA that should trigger the Teams message (for example, the HTTP Error Rate SLA for Customer Portal). When the SLA is breached, GermainUX will post the configured card to the selected Teams channel. Click Finish to save the configuration.
Selecting the triggering SLA

Selecting the triggering SLA - GermainUX

Understanding the Card Payload

Card Layout

Dynamic and Static Values

Because each HTTP Action is tied to a specific SLA, values that describe that SLA’s context can be written directly into the body. Values that change on every breach come from GermainUX context variables.
Every Action.OpenUrl must have a valid absolute URL (https://...). An empty or relative URL can cause Teams to reject the whole card.

Customizing

  • Severity colors: use style "attention" (red) for Critical, "warning" (amber) for Major, "good" (green) for Resolved, and "accent" (blue) for Informational. Create one HTTP Action per severity, each tied to the matching SLA.
  • Preview before deploying: paste the content object into the Adaptive Card Designer with the Microsoft Teams host selected.
  • Card version: keep version 1.4 for the widest compatibility across Teams desktop, web, and mobile.

Troubleshooting

Debug Logging

For Distribution List channels, set the logger com.germainsoftware.apm.action.alerting.distribution to DEBUG. It logs:
  • The channels each list resolved to
  • The card size
  • The target host and proxy used
  • Microsoft’s response and how long the request took
The webhook URL itself is never logged.
  • Use a dedicated standard Teams channel for alerts, and create the workflow under a service account.
  • Treat the webhook URL as a password and never expose it in documentation or logs.
  • Keep Teams cards to a summary plus links to GermainUX.
  • For HTTP Actions, set Expected HTTP Response to 202 for Teams workflow webhooks.
  • Apply an execution limit or quiet period to avoid duplicate messages.
  • Include the affected system, KPI, current value, threshold, and Analysis Dashboard link.
  • Test the integration in a dedicated Teams channel before enabling it in production.

Additional Resources

Teams Notification Use Cases

What can trigger a Teams notification

SLAs

SLA management and violations

Slack

Post alerts to Slack

Get Help

Contact GermainUX Support

The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

Can't Find What You Need?

Search all GermainUX docs with Ctrl + K, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.