Forum Discussion

KeffaKlumpen's avatar
KeffaKlumpen
Copper Contributor
Nov 02, 2023
Solved

Teams Tabs App - Finding the current team/site

I am currently developing a teams app that will be added to a few different teams. We are using C# / .cshtml / Razor and the app consists of a few RazorComponents which performs different Graph oper...
  • KeffaKlumpen's avatar
    Nov 05, 2023
    We found the solution to why the TeamsContext object was not being assigned any data:
    In the manifest.json we had to add the "team" scope to our tab!

    Here we found the ChannelContext which contains a RelativeUrl we can extract the site name from!

Resources