Power Automate flow with Microsoft teams

In this Microsoft Power Automate tutorial, we will see how to connect a flow, how to work with a flow within the Microsoft teams, how to make calls using flow. Also, we will discuss these below topics:

  • Microsoft flow with teams
  • Microsoft flow create a cloud flow with teams
  • Microsoft flow teams notification
  • Microsoft flow teams approval
  • Microsoft flow teams post message
  • Microsoft flow send teams message
  • Power Automate create teams meeting
  • Power Automate create team flows
  • Microsoft flow team adaptive card

As per sources, now the Microsoft flow is integrated with the Microsoft teams. That means the Microsoft team allows connecting the Power Automate flow within the team.

Once a flow is saved, it is automatically shared with the Microsoft team and any team member can edit it. Also, with the flow, we can connect the Microsoft teams to SharePoint services, Twitter, Ms forms, etc.

Microsoft flow with teams

Before working with flow inside the Microsoft teams, we will see how to connect the flow with the team.

For this, we need two requirements i.e. access to the Microsoft teams and Power Automate. Also, we can sign in with our Microsoft user ID. Let’s follow the step to install the flow in the Microsoft team.

Step-1:

Sign in and open the Microsoft team using tenant ID or Microsoft ID. Then go to the App icon (in the left panel). Search ‘Power Automate‘ in the search bar.

Microsoft flow with teams
Microsoft flow with teams

Step-2:

Select this application and click on Add. It will add in the Microsoft team.

Power Automate with the Microsoft Teams
Power Automate with the Microsoft Teams

Step-3:

Now we can see a Power Automate environment will be open automatically within the Microsoft team. We can start creating a flow by clicking on Create or +New flow.

(In the coming topics, we will see how to create a flow within the Microsoft team).

Power Automate flow with Microsoft teams
Power Automate flow with Microsoft teams

This is how to use the Power Automate flow with the Microsoft team.

Read Microsoft Flow Example: Product Notification Approval Flow

Create a flow with Microsoft team

There are different kinds of pre-built templates are available in the Power Automate that is integrated with the Microsoft teams. We can enable them by just clicking on them without any code.

These templates are:

  • Follow up on a message
  • Notify a team when a new Forms response is submitted
  • Start an approval when a file is added to SharePoint
  • Notify a team of new Sharepoint list items
  • Notify a team when Planner tasks change status
  • Notify a team of new Sharepoint files
  • Schedule a meeting from a message and so on.

We can get these all templates by the following steps:

Open Microsoft team > App (icon) or Click on . . . (More added apps on left side panel) > Power Automate > Create > All templates.

Create a flow with Microsoft teams
Create a flow with the Microsoft teams

Let’s create a cloud flow using a template from here. For example, we are going to use a template that will notify a team of new SharePoint list items.

Click on that template. It will show the application that is connected to the flow. This template will show the Microsoft teams and SharePoint with a green tick. That means we are ready to create a flow otherwise it will show a red cross symbol. Then click on Next.

Power Automate create cloud flow with teams
Power Automate create cloud flow with the teams

Then it will ask to set the parameters for setting up the flow to notify the team.

  • SharePoint site to monitor– Specify your SharePoint site address
  • SharePoint list to monitor– Select a SharePoint list where you will insert the item
  • Microsoft Teams Team– Specify the Microsoft team
  • Microsoft Teams Channel– Select the chanel
create cloud flow with teams
create cloud flow with the teams

Then click on Create flow to create a flow. It will show a success message that we successfully added a workflow to the team.

Let’s test the flow how it works and notify the team when the item is created in the SharePoint list. For this, we will create an item in the specified SharePoint list.

Create a cloud flow in Microsoft team
Create a cloud flow in Microsoft team

And we can see it will notify in the specified team on the Microsoft teams.

create a cloud flow with Microsoft teams
create a cloud flow with Microsoft teams

This is how to create a cloud flow with Microsoft teams.

Read Microsoft Flow Example: Copy Files from SharePoint to PC

Microsoft flow teams post message

In Power Automate, we can post a message to an existing team or a channel, or a specified user that using a Microsoft connector.

Here we will see how to notify the team or a channel or a person when a file is created in the SharePoint document library.

Example-1: Posting a message in a Microsoft teams channel

In this example, we will see post a message as a flow bot in the team channel. Here we have created a document library having a folder. When a file is created on that folder then it will notify the specified team(group) or channel.

Microsoft flow teams post message
Microsoft flow teams post message

Step-1:

Sign in the Power Automate. Click on +Create > go to Automated cloud flow.

Give a name to the flow. Choose a flow’s trigger i.e. When a file is created (properties only). Then click on Create.

send a message to the Microsoft teams using Power Automate
send a message to the Microsoft teams using Power Automate

Step-2:

Now our is triggered. Here, it will ask to specify the SharePoint Site Address, Library Name, and Folder.

Power Automate Post message in Microsoft teams
Power Automate Post message in Microsoft teams

Step-3:

Next, we will add an action that will notify the team when the file is created in the SharePoint library.

Click on +New step > Search the action ‘Post message in a chat or channel‘ > Add it. Here we can see 2 parameters having different kinds of options such as Post as (Flow Bot, user, Power Virtual agents) and Post in (Channel, Chat with Flow bot, Group Chat).

In the case of Post as:

  • Post as User– Here the message gets sent as the user who signed in the Microsoft teams connector in the flow.
  • Post as Flow bot– Here the message gets sent as the flow bot insted of an individual user.

Similarly, In the case of Post in:

  • Post in Channel- Posting the message in a channel.
  • Post in Chat with Flow bot- Posting the message directly to the specified user.
  • Post in Group chat- Posting the message in a group.
Send message in the Microsoft teams using Flow
Send message in the Microsoft teams using Flow

As we are going to Post a message in the Channel so we will set the properties(in this action) like below:

  • Post as- Flow Bot
  • Post in- Channel
  • Team- Specify your Microsoft teams
  • Channel- Specify the channel name
  • Message- Set a message
Post a message in Microsoft teams using flow
Post a message in Microsoft teams using flow

Let’s save the flow and test the flow manually. Then we will upload a file inside the document library.

Power Automate send a message to the Microsoft teams
Power Automate send a message to the Microsoft teams

We can see the message on the team that notify about the file creation on the SharePoint document library:

Post a message in Microsoft teams using Power Automate flow
Post a message to the Microsoft teams using Power Automate flow

This is how to Post a message in the Microsoft teams using Power Automate flow.

Read Leave Request Approval Flow using Power Automate or Microsoft Flow

Example-2: Posting a message directly to a specified team user

In this example, we will see how to send a message to a specified user in the Microsoft teams. Here we are going to use the previous flow with little modification.

In the Post message in a chat or channel action, let’s change the ‘Post in’ to Chat with Flow bot, and in the Recipient, give a Microsoft team user ID.

Send message to Teams user using flow
Send a message to Teams user using flow

Let’s save the flow and test it Manually. Now we will upload a file inside the SharePoint Document library.

Microsoft Flow send personal chat instead of post
Microsoft Flow send personal chat instead of post

Also, we can see it will notify the specified team user through a personal chat:

Send a message in Teams using Power Automate
Send a message in Teams using Power Automate

This is how to send a message in Teams using Power Automate.

Read How to convert decimal to whole number in Power Automate

Example-3: Power Automate post a message to a group in Microsoft teams

Now, we will see how to post a message in a Microsoft teams group. Similarly, here we will change a little bit in the previous flow.

We will change the ‘Post in’ to Group chat and in the Group Chat, we will specify a Microsoft team group.

Power Automate post a message to a group in Microsoft teams
Power Automate post a message to a group in the Microsoft teams

Let’s Save the flow and test it Manually. Now we will upload a file inside the document library and we can see it will notify in the specified group in the Microsoft teams.

Power Automate Post a message as the Flow bot to a group
Power Automate Post a message as the Flow bot to a group

This is how to post a message in the Microsoft team, group, and a specified user.

Read What is Power Platform + Video tutorial

Microsoft flow teams notification

Here we will see how to send a custom notification to the Microsoft teams via Power Automate. For example, we will create a flow that will notify the specified user when the file is modified on the SharePoint document library.

For this we will create a Power Automate flow. The following steps are:

Step-1:

On Power Automate environment, go to +Create > Automated flow.

Select a trigger to start the automated flow i.e. When an item or a file is modified. Give a name to the flow.

Microsoft flow teams notification
Microsoft flow teams notification

Set the parameter like below:

  • Site Address– Specify your SharePoint site address.
  • List or Library Name– Specify your document library.
  • Folder– specify the folder name
Power Automate teams notification
Power Automate teams notification

Step-2:

Next, we will add a logic action that will notify the user when the item or file is modified.

Click on +New step > Search Post message in a chat or channel > Add this. Here it will ask to set the properties like below:

  • Post as– Flow Bot
  • Post in– Chat with flow bot
  • Recipient– Specify a team user
  • Message- Set a message using dynamic contents.
How to Send Custom Notifications to Microsoft Teams with Power Automate
How to Send Custom Notifications to Microsoft Teams with Power Automate

Let’s save the flow and test it manually. Now we will modify a file inside the document library.

Power Automate send teams notification
Power Automate send teams notification

We can see, we got a notification in our Microsoft teams chat:

Send Custom Notifications to Microsoft Teams with Power Automate
Send Custom Notifications to Microsoft Teams with Power Automate

This is how to send Notifications to Microsoft Teams with Power Automate.

Read How to move files from OneDrive to SharePoint using Power Automate

Microsoft flow teams approval

Now we will see how to create an approval workflow in the Microsoft teams. For this, go to Microsoft team > Click on More added apps(. . .)> Seach Approval.

Microsoft flow teams approval
Microsoft flow teams approval

Then select that app and click on add to add this app to the Microsoft teams.

Power Automate teams approval
Power Automate teams approval

We can see there is an Approval icon on the left side panel of the Microsoft teams. To create a new approval, click on +New approval request.

Approvals in Microsoft Teams - Power Automate
Approvals in Microsoft Teams – Power Automate

Now it will open an approval page where we can request for an approval. It will ask to /give a name for the request and approver name.

How do you create an approval flow in Microsoft Teams
How do you create an approval flow in Microsoft Teams

Then we can see there is an approval request appearing in the specified approver’s teams chat where the approver can approve or reject the request with a comment as well.

Respond to an approval in Microsoft Teams
Respond to an approval in Microsoft Teams

After the response from the approver, it will notify the requester about the responses.

Approvals respond in Microsoft Teams - Power Automate
Approvals respond in Microsoft Teams – Power Automate

This is how to do Microsoft flow teams approval.

Read Run Flow on a Schedule in Power Automate

Microsoft flow send teams message

Here we will see how to create a flow that will trigger a notification in the Microsoft teams when an email arrives in a shared mailbox. To create this flow, the following steps are:

Step-1:

Go to +Create > Automated cloud flow.

Select a trigger to start the flow i.e. ‘When a new email arrives in a shared mailbox‘ then click on Create.

When a new email arrives in a shared mailbox
When a new email arrives in a shared mailbox

Step-2:

Now we will set the parameter such as:

  • Original Mailbox Address– A outlook user ID
  • Folder– Inbox
Power Automate sends team message
Power Automate sends team message

Step-3:

Then we will add an action that will send a message to the Microsoft teams when an email has arrived on outlook.

Click on +New step > Select action ‘Post message in a chat or channel’.

send teams message using Microsoft flow
send teams messages using Microsoft flow

Set the properties like below:

  • Post as– Flow bot
  • Post in– Channel
  • Team– Team1 (Select your team)
  • Channel– General
  • Message– Set a message as your choice.
Trigger a cloud flow from any message in Microsoft Teams
Trigger a cloud flow from any message in Microsoft Teams

Now our flow is ready to run. So just Save the flow and test it manually. For testing, we will send an email from any user to our outlook.

We can see it will notify the user when an email has arrived.

Power Automate to send a message into a Teams Chat Group
Power Automate to send a message into a Teams Chat Group

This is how to send messages to the Microsoft team using Power Automate.

Read Power Automate Delete all items in SharePoint list

Power Automate create team flows

Now we will see how to create teams from the SharePoint list using Power Automate flow. Here we have prepared a SharePoint list for Project management having 2 columns i.e. Title and Team Members(people column).

Power Automate create team flow
Power Automate create team flow

Let’s start the flow that will create a team automatically from the SharePoint list in the Microsoft teams.

Click on +Create > select the instant cloud flow > Manually trigger a flow.

Click on +New step > Get items. Set the properties such as:

  • Site Address– Specify your SharePoint site address.
  • List Name– Specify the SharePoint list name.
Power Automate create team flows
Power Automate create team flows

Next, we will add an action that will create a team from the SharePoint list.

Click on +New step > Search the action Create a team > Add. Set the properties like below:

  • Team Name– Select Title from the SharePoint dynamic content. Then it will create an Apply to each loop.
  • Description– Set a description as your choice.(Ex- The TSInfo Technologies Project Team)
create teams in Microsoft team using Power Automate
create teams in Microsoft team using Power Automate

Now save the flow and test it Manually. Run the flow. We can see the flow ran successfully.

Microsoft flow create team flows
Microsoft flow create team flows

Now we can see the teams are created in the Microsoft teams.

How to Create Teams in Microsoft Teams using Power Automate
How to Create Teams in Microsoft Teams using Power Automate

This is how to Create Teams in Microsoft Teams using Power Automate.

Read PowerApps upload file to SharePoint document library

Power Automate create teams meeting

Using Power Automate we can create a team meeting and invite people to attend the meeting. Let’s create a flow that will create a meeting in the Microsoft teams.

Go to Power Automate > + Create > Instant cloud flow > Manually trigger a flow.

Power Automate create teams meeting
Power Automate create teams meeting

Next, we will add an action that will create a meeting in the Microsoft teams and notify the mentioned member through a mail(outlook) and the team’s calendar.

Go to + New step > search the action Create a Teams meeting > Add it. Then it will ask to set some properties like below:

  • Calendar id– Calendar
  • Subject– Specify any subject according to your requirement (ex- Monthly Meeting Reminder)
  • Message-Specify any message as per your need (ex- Let’s join the meeting on the mentioned time)
  • Time zone– UTC or you can choose any timezone as per your requirements.
  • Start time– Below expression
  • End time– Below expression
  • Required attendees– You can specify any Microsoft user ID who required to attend the meeting.

For Start time:

utcNow()

For End time:

addHours(utcNow(), 1)
Create a Teams meeting easily with Power Automate
Create a Teams meeting easily with Power Automate

Let’s save the flow and run it manually. Now we can see there is a notification in the outlook:

Create A Teams Meeting using Microsoft Teams Flow Actions
Create A Teams Meeting using Microsoft Teams Flow Actions

Also, it will notify the user through the team’s calendar:

Go to Microsoft teams < Calendar (left panel). See the notification.

Update Team meeting using Power Automate actions
Update Team meeting using Power Automate actions

This is how to create a team meeting using Power Automate.

Read SharePoint auto generate column value using Power Automate or Flow

Microsoft flow team adaptive card

Using Power Automate we can post an adaptive card in the Microsoft teams. For example, we will create an adaptive card in Power Automate and post it in a channel or group in the Microsoft teams where the team users submit their responses.

The following steps are:

Step-1:

Go to Power Automate > +Create > Instant Cloud flow > For a selected message. This trigger allows starting a flow for a selected message in the Microsoft Teams.

Microsoft flow team adaptive card
Microsoft flow team adaptive card

Go to Edit adaptive card. Using the Drag and drop method, we will create an adaptive card like below.

Power Automate team adaptive card
Power Automate team adaptive card

Then click on the Copy card JSON to copy the JSON format of the adaptive card and Save card to save the card to the Power Automate.

Next, we will add an action Post adaptive card and wait for a response that will post an adaptive card to a chat or a channel and wait for a response. Here we will set the properties like below:

  • Post as– Flow bot
  • Post in– Channel
  • Message– Paste the JSON format of the adaptive card Or you can copy that from below.
  • Update message– Thanks for your response!
  • Team– Sepcify a team(ex- Team1)
  • Channel– General
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "weight": "Bolder",
            "size": "Large",
            "text": "Employee Information",
            "horizontalAlignment": "Center",
            "color": "Dark"
        },
        {
            "type": "TextBlock",
            "text": "We just need a few more details to get you booked for the trip of a lifetime!",
            "isSubtle": true,
            "wrap": true
        },
        {
            "type": "TextBlock",
            "text": "Your name",
            "wrap": true
        },
        {
            "type": "Input.Text",
            "id": "myName",
            "placeholder": "Last, First",
            "spacing": "None"
        },
        {
            "type": "TextBlock",
            "text": "Phone Number"
        },
        {
            "type": "Input.Text",
            "id": "myTel",
            "placeholder": "xxx.xxx.xxxx",
            "style": "Tel",
            "spacing": "None"
        },
        {
            "type": "TextBlock",
            "text": "Your Date of Birth"
        },
        {
            "type": "Input.Date",
            "id": "Mydob"
        },
        {
            "type": "TextBlock",
            "text": "Join Date"
        },
        {
            "type": "Input.Date",
            "id": "MyJoindate"
        },
        {
            "type": "TextBlock",
            "text": "Department"
        },
        {
            "choices": [
                {
                    "title": "IT",
                    "value": "IT"
                },
                {
                    "title": "Finance",
                    "value": "Finance"
                },
                {
                    "title": "HR",
                    "value": "HR"
                },
                {
                    "title": "Manager",
                    "value": "Manager"
                }
            ],
            "type": "Input.ChoiceSet",
            "id": "MyChoice",
            "placeholder": "Select Your department"
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit"
        }
    ]
}
Microsoft flow team post an adaptive card
Microsoft flow team post an adaptive card

Let’s save the flow and test it Manually. We can see there is an adaptive card post in specified channel in the Microsoft team.

Power Automate team post an adaptive card
Power Automate team to post an adaptive card

Let’s fill the card and then click on Submit. It will show an update message or response message.

Create flows that post adaptive cards to Microsoft Teams
Create flows that post adaptive cards to Microsoft Teams

This is how to create flows that post adaptive cards to Microsoft Teams.

You may also like the following Power Automate tutorials:

Conclusion

From this Power Automate Tutorial, we learned all about how to use Power Automate in the Microsoft teams. Also, we discussed the below topics:

  • How to use Microsoft flow with teams?
  • How to create a flow with Microsoft team?
  • How to post a message in a Microsoft team channel using flow?
  • How to post a message directly to a specified team useru using Power Automate?
  • How to post a message to a group in Microsoft team using Power Automate?
  • How to show teams notification using Microsoft flow
  • How to create an teams approval using Microsoft flow?
  • How to send teams message using Microsoft flow?
  • How to create a team from Power Automate flows?
  • How to create a teams meeting using Power Automate?
  • How to post an adaptive card in team using Microsoft flow?
>