Finding Team and Channel Ids for Use in Power Automate

A few months ago, I wrote a post on how to find all of the IDs you might need to work with SharePoint in Power Automate. I recently needed to find a ids for teams to use in Power Automate. So, this post explains how to get the team and channel ids. Read on to learn more…

Get Links

To find the team and channel ids, you need to grab some links. From teams, click on the three dots next to the team name and the channel name.

team and channel ids
team and channel ids

The links will look like those shown below. I’ve anonymized my links so I can publish them.

Team Link

Channel Link

There are a couple of things I want you to pay attention to about these links.

  1. The link structures are similar. One starts with “l/channel/” and the other “l/team/” indicating one is a channel link and the other a team link.
  2. Both “l/channel/” and “l/team/” are followed by the same string. This string is the channel id.

Let’s pause for a second. It seems strange that the team link would have a channel id in it. I explored links for a few different teams and channels, and the channel id shown in the team link is the channel id for the General channel that gets created with all Teams. That is why you must get the channel link for any channel other than the General channel.

Team and Channel Ids

With that said, these links have 3 important pieces of information.

  1. The channel id begins with the “19%” or “19:”.
  2. The group id, which is the team id, and comes after “groupId=”. Copy after the equals sign and do not include the “&” in front of the “tenantId”.
  3. The tenant id is associated with your environment or organization and comes after “tenantId=”. You might need this for other things, so I’m pointing it out.

But what do you do if your flow involves creating the channel and you need the id immediately? In that case, add an Initialize variable action after the Create channel action. Populate the variable with the channel id dynamic content as shown here.

team and channel ids


Private channels might not show you the option to get the channel link. I haven’t figured out how to get these ids just yet. I’ll post an update when I get there.

And now you know two different ways to get the team and channel ids to use in Power Automate.

Other Sweet Power Automate Content


Leave a Reply

Your email address will not be published. Required fields are marked *

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