Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Hi MARTEL Guillaume (MOL-Teacher), thanks for raising your issue. You can follow below steps to set up a workflow in Power Automate that sends an email whenever you post a message in any channel of a Microsoft Teams team.
- Log in to Power Automate:
- Go to Power Automate and log in with your Microsoft account.
- Create a New Flow:
- Click on Create in the left-hand menu.
- Select Automated cloud flow.
- Set the Trigger:
- In the "Build an automated cloud flow" dialog:
- Name your flow (e.g., "Send Email on Teams Message").
- Search for and select the trigger: When a new message is added to a channel.
- Click Create.
- Configure the Trigger:
- In the trigger configuration:
- Select the Team where you want to monitor messages.
- Select the Channel. If you want this to apply to all channels, you will need to create separate flows for each channel, as Power Automate currently does not support monitoring all channels in one flow.
- Add an Action to Send an Email:
- Click on + New Step.
- Search for Send an email (V2) (provided by Microsoft 365 Outlook).
- Configure the email:
- To: Enter the recipient's email address.
- Subject: Use dynamic content like
MessageorChannelto make the subject informative (e.g., "New Message in [Channel Name]"). - Body: Include dynamic content such as the message content, sender name, and timestamp.
- Test the Flow:
- Save the flow and test it by posting a message in the selected Teams channel.
- Check if the email is sent to the specified recipient.
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.