Microsoft Teams Integration Setup Guide
This guide walks you through connecting Lathe Studio to Microsoft Teams for notifications and team collaboration.
Prerequisites#
- Microsoft Teams account
- Permission to add connectors/apps to your team
- Project admin access in Lathe Studio
Overview#
The Microsoft Teams integration enables:
- Test Run Notifications: Get notified when test runs are completed
- Build Alerts: Receive alerts when builds are ready for testing
- Release Updates: Track release status changes
- Team Collaboration: Discuss test results in Teams channels
Connecting Microsoft Teams#
Step 1: Add Incoming Webhook to Teams
- In Microsoft Teams, go to the channel where you want notifications
- Click the ... (more options) next to the channel name
- Select Connectors
- Search for Incoming Webhook
- Click Add
- Give it a name: "Lathe Studio"
- Upload the Lathe Studio logo (optional)
- Click Create
- Copy the webhook URL
Step 2: Configure in Lathe Studio
- Go to Settings → Integrations → Microsoft Teams
- Paste the webhook URL
- Click Save
Step 3: Configure Notifications
Select which events trigger Teams notifications:
| Event | Description | Default |
|---|---|---|
| Test Run Completed | When a test run is marked complete | Enabled |
| Test Run Submitted | When a tester submits results | Enabled |
| Build Created | When a new build is available | Enabled |
| Release Released | When a release is shipped | Enabled |
| Test Case Failed | When a test fails (immediate) | Disabled |
| Daily Summary | Daily digest of activity | Disabled |
Step 4: Test the Integration
- Click Send Test Message in Lathe Studio
- Check the Teams channel
- You should see a test notification
Notification Format#
Test Run Completed
Card Title: Test Run Completed
Body:
- Test Run: Smoke Tests - Build 245
- Project: E-commerce Platform
- Results: ✅ 42 Passed | ❌ 3 Failed | ⚠️ 1 Blocked
- [View Run] [View Report]
Build Ready for Testing
Card Title: New Build Available
Body:
- Build: 246 (v2.4.1)
- Branch: main
- Status: Ready for testing
- [Assign to Release] [View Details]
Channel Configuration#
Microsoft Teams supports one incoming webhook connection per organization — notifications are delivered to the channel whose webhook URL you pasted in Lathe Studio.
To notify different groups about different projects, create custom notification rules and scope each rule to the relevant project. All Teams notifications for your organization are delivered to the connected channel.
Message Cards
Notifications use Teams connector Message Cards:
- Test result summaries
- "View" links back to the run or build in Lathe Studio
- Status indicators
Troubleshooting#
Notifications not appearing
- Verify the webhook URL is correct
- Check the connector is active in Teams
- Ensure notification settings are enabled
- Try sending a test message
Webhook URL errors
If you see "Invalid webhook URL":
- Regenerate the webhook in Teams
- Update the URL in Lathe Studio
- Ensure the URL starts with
https://
Rate limiting
Microsoft Teams has rate limits for connectors:
- Maximum 30 messages per 60 seconds
- If exceeded, messages may be delayed or dropped
To avoid this:
- Reduce notification frequency
- Use daily digests instead of real-time notifications
- Batch similar notifications
Security#
- Webhook URLs are stored in the database and scoped by organization; they are encrypted at rest
- URLs contain unique tokens for authentication
- No Teams credentials are stored
- Users can remove the connector at any time
- Team owners can manage connector permissions
Unlinking Microsoft Teams#
To disconnect:
Method 1: Remove Connector in Teams
- Go to the channel in Teams
- Click ... > Connectors
- Find "Incoming Webhook"
- Click Configured
- Find the Lathe Studio webhook
- Click Remove
Method 2: Remove in Lathe Studio
- Go to Settings → Integrations → Microsoft Teams
- Click Remove Integration
- Confirm disconnection
Note: Removing the integration stops all notifications. Previously sent messages remain in Teams.
Advanced Configuration#
Power Automate Integration
Use Microsoft Power Automate for advanced workflows:
- Create a flow triggered by Lathe Studio webhook
- Add actions like:
- Send email notifications
- Create Planner tasks
- Update SharePoint lists
- Post to other channels
For additional help, contact support.