Using Microsoft Power Automate Bot in teams with email Trigger
Dear Microsoft BizApps Community,
Welcome to my next blog on Power Automate flow with Microsoft teams chat, this is my first blog into the Power Automate area.
In this blog we shall have a look -How we can create a Power Automate Bot to post a chat on our behalf once an email is arrived into our mailbox.
The Scenario we shall explore is as follows
If we receive a mail with having the subject line as “Urgent”, it will notify the sender in teams with Power Automate Bot
Scenario is designed in below
Let’s explore
Navigate to www.office.com ->> Login with your outlook ID or Work account ->> all apps->> Power Automate
Now we are in Power Automate page, we shall create a flow by clicking on “Create”
Now select “Automated Cloud Flow”
The new page will open like below select “Skip”
Now, we shall land into the Flow creation page
From here we shall have “Trigger” and “Action” point
Our Trigger is ~ when we get the Email in mailbox with Subject line “Urgent”
Now, we shall select the below
- “Office 365 Outlook” if you are using work or personal account
- Trigger will be “When a new email arrives (V3) 2”
- Connect your account which you would like to use as trigger, for my case I have connected with my company email ID
Now create the trigger by adding the “Urgent” in Subject line, see below, this will trigger the automate
Now select the action once we have decided the trigger as above
Select next step->> Microsoft Teams
Now select “Post a message in a chat or Channel”
Once done, prepare the mail template, we can use many dynamic content, also we can customize, however I am using only standard dynamic content as follows
Once done, save the flow and after that we are ready to use the flow
Before we go live, we can also test the flow manually by selecting test and send a mail to self and see if Bot can send chat I your teams
The setup is done, congratulants
Now lets see if the flow is working
I got a email with the subject “Urgent” from one of my consultant
Now the person who sent the email, will get the Bot reply in his/her teams chat like below
Power Automate Bot will send you the message in teams
The text will look like this
Isn’t it Awesome????? Indeed
That’s is for this blog, will share more awesome things
*This post is locked for comments