I will explain how to send teams messages using power automate in this Power Automate tutorial. I will show you how to send teams messages in Chats and Channels of Microsoft Teams using Power Automate.
In this tutorial, we are going to cover below examples:
- Send teams messages using Power Automate.
- Power Automate send teams message to an individual user.
- Send teams message to multiple recipients using Power Automate.
- Send a teams message to me in Power Automate.
- How to send teams messages with links in Power Automate
To do the above example, we will use the SharePoint list ‘Post Team Message’, which contains the below column:
- Title: Single Line of Text
- Message: Multiple lines of Text
- Recipients: Person
Power Automate send teams message
Here we will see how to send a message to a Channel of Microsoft Teams using Power Automate.
Before creating the flow, set up your SharePoint list with the above columns.
Step 1: Log in to Power Automate, and select an Automated Cloud Flow in Power Automate
Provide the flow name, and select When an item is created action. Then click on Create.
Now When an item is created, action is added to the flow page; provide the below information:
- Site address: Select or Provide the SharePoint site address.
- List name: Select the list from the dropdown.
Step 2: Next, we will post a message on the Teams channel, so click on the +New step -> select the ‘Post message in a chat or channel‘ action. Then provide the below information:
- Post as: Select the Post as User
- Post in: Select the Post in as Channel
- Team: Select the Team from the dropdown
- Channel: Select the channel
- Message: Select the message from the dynamic content
- Subject: Select the Title from dynamic content.
Step 3: To run the flow manually, add an item to the SharePoint list. The message is added to the Channel in Microsoft Teams using Power Automate.
This is an example of sending teams messages using power automate.
Send teams message to individual user in Power Automate
Here we will see how to send teams message to the individual user using Power Automate.
We will use the above SharePoint list, so the flow will trigger when an item is created in this list. Then it will create a chart with user 3 and send a message to it.
Step 1: Create an Automated cloud flow. Then provide the flow name and select a trigger action as When an item is created. Then click on Create.
Provide the below information after adding the “When an item is created” flow action.
- Site address: Select or Provide the SharePoint site address.
- List name: Select the list from the dropdown.
Step 2: Now we will create a Chart, so click on the +New step -> click on Create a chat action.
Then provide the below information:
- Members to add: Select Recipient Email from dynamic content.
Step 3: now, we will post a message to the recipient. So, click on the +new step -> select the ‘Post message in a chat or channel‘ action. Then provide the below information:
- Post as: Select the User from the dropdown.
- Post in: Select the Group chat
- Group chat: Select the Conversational id from the dynamic content
- Message: Select Message from dynamic content.
Step 4: Now test the flow manually, and create an item in the SharePoint list. You can see the message is sent to the user.
This is an example of sending teams message to individual user using Power Automate.
Send teams message to multiple recipients in Power Automate
Here we will see how to send teams’ messages to multiple recipients using Power Automate.
We will use the above SharePoint list, so the flow will trigger when an item is created in this list. Then it will create a chat for multiple recipients in Microsoft Teams, and we will send a message to it.
Step 1: Create an Automated cloud flow. Then provide the flow name and select a trigger action as When an item is created. Then click on Create.
Now, When an item is created action is added to the flow. Then provide the below information.
- Site address: Select or Provide the SharePoint site address.
- List name: Select the list from the dropdown.
Step 2: Next, click on the +New step -> select Initialize variable action -> then provide the below information.
- Name: Provide the name as Recipients
- Type: Provide the type as array
Step 3: Next, click on the +New step-> select Append to array variable action. Then provide the below information:
- Name: Select the name from the dropdown.
- Value: Select the Recipients email from the dynamic content. That will automatically add Apply to each action.
Step 4: Click the +New step -> select Join action. Then provide the below information:
- From: Select the Recivents-variable from the dynamic content.
- Join With: Here provide the comma ‘,’
Step 5: Now we will create a chart, so click the +New step -> select Create a chat action. Then provide the below information:
- Members to add: Here, provide the output of the join action.
- Title: Select the Title from dynamic content.
Step 6: Now, we will send a message, so click on the +New step -> select ‘Post message in a chat or channel‘ action. Then provide the below information.
- Post as: Select Post as User
- Post in: Select Post in the Group chat
- Group chat: Select Conversational id from dynamic content
- Message: Select Message from dynamic content
Step 7: Run the flow manually, and create an item in the SharePoint list. The group chat is created, and the message is sent to that group.
This example is sending teams messages to multiple recipients using Power Automate.
Power Automate send teams message to me
Here we will see how to send messages to me in Teams using Power Automate.
We will use the above SharePoint list, so when an item is created, the flow will trigger, sending a message to my teams’ id.
Step 1: Create an Automated cloud flow. Then provide the flow name and select a trigger action as When an item is created. Then click on Create.
Now, When an item is created action is added to the flow. Then provide the below information.
- Site address: Select or Provide the SharePoint site address.
- List name: Select the list from the dropdown.
Step 2: Now, we will post a message to the recipient. So, click on the +new step -> select ‘Post message in a chat or channel‘ action. Then provide the below information:
- Post as: Select the User from the dropdown.
- Post in: Select the Group chat
- Group chat: Provide the custom value as 48:notes
- Message: Select Message from dynamic content.
Step 3: Test the flow manually, and create an item in the SharePoint list. You can see the message is sent to me in teams using Power Automate.
This is an example of “send teams message to myself” using Power Automate.
Power Automate send teams message with a link
Here we will see how to send team messages with a Microsoft Teams channel link using Power Automate.
For example, we will create an Instant cloud flow. The user will provide the link while manually triggering the flow and then post a message with a link to the Microsoft Teams channel using Power Automate.
Step 1: Create an Instant Cloud flow. Then provide the flow name -> select Manually trigger a flow. Click on Create.
Now manually triggering a flow is added to the flow page. Expand and click on Add an Input -> select Text -> then rename the field as Link.
Step 2: After that, we will post a message, so click on the +New step -> select ‘Post message in a chat or channel‘ action. Then provide the below information:
- Post as: Select the User from the dropdown.
- Post in: Select the Channel
- Team: Select the team from the dropdown
- Channel: Select the Channel from the dropdown.
- Message. Select this HTML tag ‘</>’ and then provide the below code:
<p><a href="@{triggerBody()['text']}">link</a></p>
Step 3: Now run the flow manually, and you can see the message with the link sent to the Channel.
This is an example of “send teams message with link using Power Automate”.
Conclusion
In this Power Automate tutorial, we saw how to send teams messages using Power Automate.
Also, we cover below examples:
- Power Automate sends teams a message
- Power Automate send teams message to individual user
- Power Automate send teams message to multiple recipients
- Power Automate send teams message to myself
- Power Automate send teams message with link
You may also like:
- How to convert base64 to an image file in Power Automate?
- Add Attachments to SharePoint List Items using Power Automate
- How to Merge Word Documents in Power Automate?
- Read a text and count its occurrence from a docx file in Power automate
After working for more than 15 years in Microsoft technologies like SharePoint, Office 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (9 times). I have also worked in companies like HP, TCS, KPIT, etc.