What You'll Achieve
- โ Automated Teams notifications for training assignments, completions, and reminders
- โ Rich adaptive cards with action buttons and detailed information
- โ Direct messaging to individual users via Teams
- โ Seamless integration between TrainMeUK and Microsoft Teams
๐ค Who Should Do This
A Microsoft 365 administrator with Power Automate Premium license and Teams admin permissions.
Note: This integration requires Power Automate Premium as it uses HTTP triggers.
๐ Step-by-Step Setup
1. Create New Power Automate Flow
- Open Power Automate (flow.microsoft.com)
- Click New flow
- Select Automated cloud flow
- Click Skip to bypass the template selection
- Name your flow something memorable like 'Teams Message Automation'
- Click Create
2. Add HTTP Trigger
- Click Add a trigger
- Search for 'When a HTTP request is received'
- Select the trigger (this is a Premium Power Automate function)
- In the Request Body JSON Schema field, paste the following schema:
{
"type": "object",
"properties": {
"userEmail": {"type": "string"},
"userName": {"type": "string"},
"messageTitle": {"type": "string"},
"messageBody": {"type": "string"},
"actionUrl": {"type": "string"},
"actionText": {"type": "string"},
"priority": {"type": "string"},
"category": {"type": "string"},
"timestamp": {"type": "string"}
}
}

3. Add Teams Action
- Click New step
- Search for 'Post card in a chat or channel'
- Select the action
- Configure the action settings:
- Post as: Flow Bot
- Post in: Chat with Flow Bot
- Recipient: Click the cog symbol and select "Use dynamic content"
- Click into the recipient box and click the blue lightning bolt button that appears
- Select userEmail from the dynamic content options

4. Configure Adaptive Card
In the Adaptive Card section, paste the following JSON:
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"text": "@{triggerBody()?['messageTitle']}",
"wrap": true
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['messageBody']}",
"wrap": true,
"spacing": "Medium"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "@{if(empty(triggerBody()?['actionText']), 'View Details', triggerBody()?['actionText'])}",
"url": "@{triggerBody()?['actionUrl']}"
}
]
}

5. Save and Get Webhook URL
- Click Save at the top of the Power Automate page
- Once saved, the HTTP POST URL will be generated in the first step
- Copy this URL - you'll need it for TrainMeUK configuration
๐ก Tip: The webhook URL will look something like: https://prod-xx.westus.logic.azure.com:443/workflows/xxx/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxx
6. Configure TrainMeUK Settings
- Go to app.trainmeuk.co.uk/admin/settings
- Click the Bell Icon to open notification settings
- Scroll down to Power Automate Direct Messages
- Tick Enable Power Automate Direct Messages
- Paste the HTTP POST URL from Power Automate into the Webhook URL field
- Click Save

๐งช Test Your Integration
Testing Steps
- Create a test training assignment in TrainMeUK
- Assign it to a user who has Teams access
- Check that the user receives a Teams notification with the adaptive card
- Verify that the action button works and links to the correct training
- Test different notification types (assignments, completions, reminders)
๐ก Troubleshooting
"Flow failed to trigger"
Check that the webhook URL is correctly copied and pasted into TrainMeUK settings. Ensure there are no extra spaces or characters.
"User not found in Teams"
Verify that the user's email address in TrainMeUK matches their Microsoft 365 email address exactly.
"Premium license required"
Ensure you have Power Automate Premium licenses assigned to users who need to create HTTP trigger flows.
"Adaptive card not displaying"
Check the JSON syntax in the adaptive card configuration. Ensure all brackets and quotes are properly closed.
Why Power Automate Integration Matters
Power Automate integration transforms how your organization handles training notifications by providing:
Real-Time Notifications
Staff receive immediate notifications in Teams when training is assigned, completed, or overdue, ensuring nothing falls through the cracks.
Rich Interactive Cards
Adaptive cards provide detailed information and direct action buttons, making it easy for users to access training with a single click.
Centralized Communication
All training communications happen in Teams, where staff already spend their working day, reducing context switching.
Automated Workflows
Eliminate manual notification processes and ensure consistent, timely communication across your organization.
Advanced Configuration Options
Customization Possibilities
Conditional Logic
Add conditions to send different notifications based on training type, user role, or completion status.
Multiple Recipients
Configure flows to notify managers, HR, or compliance teams in addition to the trainee.
Rich Media
Include images, progress bars, or charts in adaptive cards to make notifications more engaging.
Escalation Workflows
Set up automatic escalations for overdue training with increasing urgency levels.
Security Best Practices
Keep Your Integration Secure
- Use HTTPS webhooks only to ensure encrypted communication
- Validate webhook URLs and keep them confidential
- Monitor flow runs regularly for any unusual activity
- Set appropriate permissions on Power Automate flows
- Test thoroughly before deploying to production
- Keep adaptive card JSON secure and validate all dynamic content
What Happens After Setup
Once configured, your Power Automate integration will automatically:
- Send Teams notifications when training is assigned to users
- Notify managers when their team members complete training
- Send reminder notifications for overdue training
- Provide direct links to training content via adaptive card buttons
- Track engagement through Teams activity logs
Ready to Set Up Power Automate Integration?
Our team can help you configure Power Automate Teams integration in under 30 minutes, with full support throughout the process.
Frequently Asked Questions
Do I need Power Automate Premium for this integration?
Yes, Power Automate Premium is required because this integration uses HTTP triggers, which are a premium feature. You'll need at least one Power Automate Premium license to create and run the flow.
Can I modify the Teams notification messages?
Yes, you can modify the adaptive card JSON to include different text, styling, images, or additional action buttons. The JSON structure is flexible and supports various card layouts and content types.
What happens if a user doesn't have Teams access?
If a user doesn't have Teams access or their email doesn't match their Microsoft 365 account, the notification will fail silently. TrainMeUK will continue to send notifications to other users who do have access.
How do I test the integration after setup?
Create a test training assignment in TrainMeUK and assign it to a user with Teams access. Check that they receive the Teams notification with the adaptive card. You can also test different notification types like completions and reminders.
Can I send notifications to Teams channels instead of individual users?
Yes, you can modify the flow to post to Teams channels instead of individual chats. Change the "Post in" setting from "Chat with Flow Bot" to "Channel" and select the appropriate channel.
What if my webhook URL changes?
If you need to update the webhook URL, simply copy the new URL from your Power Automate flow and paste it into the TrainMeUK settings. The old URL will stop working, so make sure to update it promptly.