Microsoft Teams actions in Flow

Within Microsoft Flow there are many triggers and actions available. With a strong interest i Microsoft Flow and Microsoft Teams I had a look into what is available. For Microosft Teams there are no triggers (yet). I’m sure it would be nice to have triggers on the creation of a Team, channel, or adding members. But then of course you might as well use SharePoint triggers that fire on the creation of a channel folder in a document libraryMicrosoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

So the options are still quite limited. I’m going to look through the available actions starting with the List teams. As this is the only way to get the Team Ids

List Teams

The first action will give you a list of all the teams available in Microsoft Teams.

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

Once you have got the list of teams you could now use this list of teams in an Apply to each action.

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

Then a create channel for each team would be a fairly simple task.

Create a channel

Once the connection has been setup with the List teams you can create a channel for each team:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

Although this gave me the following error:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

So this didn’t work. Time to try the simple option by selecting a team from the drop down:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

This worked straightaway! Not sure if I can find many uses for this at the moment though as my flow would only work once. Well I guess this Teams connector is still in preview.

List Channels

To get all the channels within a selected team you can use the List channels actions:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

Post Message

To post a message to a channel you can use the Post Message action however plain text seems to be the only option:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

But this go interpreted like this:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

And in teams this looks like:

Microsoft Teams actions in Flow Microsoft 365, Microsoft Flow, Microsoft Teams

 

 

 

3 thoughts on “Microsoft Teams actions in Flow

  1. I think you can add HTML to it.

    What I really want to know – is how to post a message to Teams from Flow, together with Subject and also Importance set.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: