question

Apolloservices-5653 avatar image
0 Votes"
Apolloservices-5653 asked Meghana-MSFT edited

Detect request comes from Teams Tab

Hi,

We are building a personal tab to render our web application inside Teams. We need to know whether the request comes from the Teams tab or not?
Is there any way to get that info from the request?

office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Meghana-MSFT avatar image
0 Votes"
Meghana-MSFT answered Meghana-MSFT edited

@Apolloservices-5653 - You can use Query Parameters in your manifest content URL like &inTeams=true or you can use from these Get context for your tab. You can then compare the values to know if the request is coming from Teams.

Please refer to this thread for more information - how to detect that your embedded tab is in teams



Thanks,
Meghana


If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.