Create a Teams Workflow
Distribution List
Teams Templates
Troubleshooting
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

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 HTTPPOST 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:
Authorization header is required.

How an alert travels from GermainUX to Teams - GermainUX
Create a Teams Workflow
If you do not already have a webhook workflow for the destination channel:Open the channel
Open Workflows

Opening Workflows from the channel menu - GermainUX
Select the webhook template

Selecting the webhook template - GermainUX
Name the workflow
Choose the team and channel

Choosing the team and channel - GermainUX
Copy the webhook URL

Copying the generated webhook URL - GermainUX
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:
Test message received in Teams - GermainUX
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: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.
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, nottables.tablesandchartsproduce 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 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 withmaxRows(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:
First page of the HTTP Action wizard - GermainUX
Step 2: Configure the HTTP Request
${context.kpi.name} and ${context.displayValue} to insert live alert data:
Request body (Adaptive Card)
Request body (Adaptive Card)

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 - 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.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
contentobject into the Adaptive Card Designer with the Microsoft Teams host selected. - Card version: keep version
1.4for the widest compatibility across Teams desktop, web, and mobile.
Troubleshooting
Debug Logging
For Distribution List channels, set the loggercom.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
Recommended Practices
- 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
202for 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
SLAs
Slack
Get Help
Contact GermainUX Support
Can't Find What You Need?
The content of this document is proprietary to GERMAIN SOFTWARE.

