Teams + Power Apps: Building context/theme aware apps
Image Source: Shutterstock.com
Nov 28, 2022 7:00 AM

Teams + Power Apps: Building context/theme aware apps

External Blog Post

For any Power Apps canvas app used on Teams, there is a list of parameters/context variables that Teams passes to the app via QueryString that can be used to de

For any Power Apps canvas app used on Teams, there is a list of parameters/context variables that Teams passes to the app via QueryString that can be used to detect current Teams context.

Those parameters can be used to display relevant data, for example, to load the Planner plans for a Team, check user role in a Team, change the app theme according to the Teams theme to make the app look like a native app, and many more actions.

This past blog post lists the parameters and how to use some of those:

https://michelcarlo.com/2021/05/15/teams-power-apps-building-theme-and-context-aware-apps/

More About this topic on Microsoft Learn

Embed a canvas app as personal app in Teams

You can share an app you've created by embedding it directly into Microsoft Teams. When completed, users can select + to add your app to any of your team channels or conversations in the team you are in. The app appears as a tile under Tabs for your team.

https://learn.microsoft.com/en-us/power-apps/teams/embed-teams-app?WT.mc_id=M365-MVP-5004644

Context interface by Microsoft

https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/microsoftteams.context?view=msteams-client-js-1.12.1