web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issues adding PowerApp...
Power Apps
Suggested Answer

Issues adding PowerApps to a MS Teams channel as a Tab

(0) ShareShare
ReportReport
Posted on by

Hi Community, 

I hope someone may have some suggestions to the following issue. I have a Power Automate flow to provision new teams in MS Teams, and  there is a requirement to add PowerApps as a tab and connect it to a specific app.

This is done using this endpoint (via a custom connector):

https://graph.microsoft.com/v1.0/teams/{teamId}/channels/{ChannelId}/tabs

Payload:

{
  "displayName": "PowerApps as App tab",
  "teamsApp@odata.bind": "https://graph.microsoft.com/beta/appCatalogs/teamsApps/{PowerAppAppID}",
  "configuration": {
    "entityId": "/providers/Microsoft.PowerApps/apps/{MyAppId}",
    "contentUrl": "https://apps.powerapps.com/play/providers/Microsoft.PowerApps/apps/{MyAppId}?source=teamstab&locale={locale}",
    "websiteUrl": "https://apps.powerapps.com/play/providers/Microsoft.PowerApps/apps/{MyAppId}?source=teamsopenwebsite"
  }
}
I am able to embed this into a channel where I have previously added the PowerApps app in a tab to test things.
 
However, when I try using the above to embed the app in a newly provisioned team, I get this error:
"App id {PowerAppAppID} needs to be installed to the scope {MyAppId}:{ChannelId} and be in an unblocked state to install/update a tab",

Does anyone have any workaround for this as I am trying to minimise/remove manual steps from this process.
Categories:
I have the same question (0)
  • Suggested answer
    Ravi-Prajapati Profile Picture
    416 Super User 2025 Season 2 on at

    The error message "App id {PowerAppAppID} needs to be installed to the scope {MyAppId}:{ChannelId} and be in an unblocked state to install/update a tab" indicates that the Power Apps app must be pre-installed in the team before you can add it as a tab.

    Since you’re provisioning new teams programmatically, you need to install the Power Apps app first before adding the tab. Here's how you can do it:


    Solution: Install the Power Apps App to the Team First

    Before adding the tab, you must install the Power Apps application in the team. You can do this via Microsoft Graph API using the following steps:

    Step 1: Install the Power Apps App in the Team

    Use the Graph API to install the Power Apps app in the team before attempting to add the tab.

    POST Request

    https://graph.microsoft.com/v1.0/teams/{teamId}/installedApps

    Payload

    {
    "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{PowerAppsAppId}"
    }
    • Replace {PowerAppsAppId} with the Teams App ID for Power Apps.
    • This step ensures the Power Apps app is installed in the team.

    Step 2: Wait for Installation to Complete

    After installing the app, you must wait a few seconds before adding the tab. You can do this by:

    • Adding a Delay action in Power Automate (5-10 seconds).
    • Polling the team’s installed apps to confirm installation.

    To verify installation, use:

    GET https://graph.microsoft.com/v1.0/teams/{teamId}/installedApps

    Check if Power Apps appears in the response.


    Step 3: Add the Power Apps Tab

    Once the Power Apps app is installed, you can use your existing POST request to add the tab.

    Make sure the payload contains:

    • The correct Power App ID (MyAppId).
    • The correct team and channel IDs.

    Final Approach in Power Automate

    1. Create a Power Automate flow that:

      • Provisions the team.
      • Installs the Power Apps app (Step 1).
      • Waits for installation (Step 2).
      • Adds the Power Apps tab (Step 3).
    2. Use a Custom Connector for the Graph API requests.


    Alternative: Use Teams Templates

    If you're provisioning similar teams frequently, consider Teams Templates:

    • You can create a template that includes the Power Apps app by default.
    • This removes the need for installing it dynamically.

    Conclusion

    You need to install the Power Apps app first before adding it as a tab. This can be done via:

    1. Graph API request to install the app.
    2. Delay or check if the app is installed.
    3. Then add the tab using your existing request.

    This should fully automate the process and remove the manual steps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard