Categories: Microsoft 365

Create new tabs in your Teams in Microsoft Teams using Power Automate

Have you ever tried adding new tabs in your teams in Microsoft Teams? When you do this with Power Automate you might need to have a look at Microsoft Graph.

The out of the box Teams actions in Power Automate

I had a look through the actions in the Microsoft Teams connector but there isn’t anything there that could be of any help when you try to create new tabs in your team.

In my case I need to add a Power App to the default tabs of my project team that is being created. I want to do this in an automated way. so why not use Power Automate.

I found a useful starting point in the Teams Rocks site that pointed me towards Microsoft Graph after I attempted Microsoft Teams PowerShell.

The MS Graph calls needed

The first thing to look at is the call that will create a new tab. The endpoint that needs to be called with a POST is the following one:{id}/channels/{id}/tabs

So we will need to get the id of the Team and the id of the channel. We could now of course use MS Graph to collect these but why not just use the actions available in Power Automate to do this for me.

With the Get a team and List channels actions I can get all the information that I need to build up my end point uri.


Similar to my post about Updating Excel templates using Microsoft Graph I will use an app registration to handle the permissions to Microsoft Graph.

So far from all the posts mentioned we should have a flow that looks like this.

Nothing new there.

Time to make that call to the endpoint that was mentioned earlier to add my tab to my team.

Next to calling the end point I will also need to send body. The body will need to look like this. Note that the teamsApp@odata.bind is making this into a website type app.

  "displayName":"My Power App",    "teamsApp@odata.bind":"",
 "configuration":  {"entityId":"2DCA2E6C7A10415CAF6B8AB6661B3154",

Now we can translate this into Power Automate flow language. So far the bits that we have got will look like this:

But we will need to do some more still. The first thing will be to add the access token to the call. Othewwise you will get errors like :

Access token is empty.

Just add the following to the HTTP request, where the access token is retrieved from the compose action following the first HTTP request.

If you now run it you might get an UnknownError. I hate it when APIs give me Unknown errors. Unless you know what you are doing it will be difficult to find the next step.

In this case I know that I haven’t set the permissions in my app registration yet. So that will be the first thing to do.

Set the app registration permissions

Within the app registration in Azure you will have to supply the following application permissions (not delegated permissions!).

Now when you run your flow you will find a successful flow that has created the tab with a power app.

The end result, a new tab created in Teams

Then when you look in Microsoft Teams you will find new tabs added to your team!

Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using

Recent Posts

Calculate the Sum for a SharePoint column in Power Automate

Last week Shane Young asked me about calculating the Sum for a SharePoint column in…

3 hours ago

Object must implement IConvertible in Power Apps

In Power Apps when you do a Patch to create a new item or to…

4 days ago

Get started with adaptive cards in Power Automate

Getting started with adaptive cards can be difficult. In this post i have written some…

1 week ago

Create PDF documents from data in Power Automate

In this post I will look at how to create PDF documents from data. Use…

2 weeks ago

Unnest nested arrays in Power Automate

We all know this problem, you have a nested array in Power Automate but how…

3 weeks ago

Advanced settings not loading in Power Platform

Yesterday one of my clients showed me an issues where the Advanced settings didn't load.…

4 weeks ago