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 1

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 2

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 3

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 4

Although this gave me the following error:

Microsoft Teams actions in Flow 5

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

Microsoft Teams actions in Flow 6

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 7

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 8

But this go interpreted like this:

Microsoft Teams actions in Flow 9

And in teams this looks like:

Microsoft Teams actions in Flow 10

 

 

 

3 thoughts on “Microsoft Teams actions in Flow

Leave a Reply

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

%d bloggers like this: