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 Project 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#
Project Channels
Configure different Teams channels for different projects:
- Go to Project Settings > Integrations > Microsoft Teams
- Click Add Channel
- Paste the webhook URL for the channel
- Choose notification types
Adaptive Cards
Notifications use Microsoft Adaptive Cards for rich formatting:
- Test result summaries
- Action buttons (View, Assign, Reject)
- Colored status indicators
- Collapsible details
Microsoft Teams App (Coming Soon)#
A dedicated Lathe Studio app for Microsoft Teams is in development. Features will include:
- Tab views for test dashboards
- Message extensions for quick test lookups
- Bot commands for status checks
- Meeting integration for test planning
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 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 Project 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
Custom Card Formatting
Enterprise customers can customize Adaptive Cards:
- Go to Organization Settings > Integrations > Microsoft Teams > Advanced
- Edit card templates using Adaptive Card JSON
- Preview changes before saving
For additional help, contact support.