Skip to content

How to Pass Query Parameters When App Runs Inside Microsoft Teams? #2937

@jaideep-maersk

Description

@jaideep-maersk

Hi team,

We have a scenario where our application is running inside Microsoft Teams (as a Tab app), and we’d like to pass query parameters to our app when it loads.

Use cases include:

  • Tracking where users are coming from when they open the tab
  • Passing custom data or context on app launch
  • Enabling deep-linking–style behavior with additional parameters

Question:
Is there an official or recommended way to pass query parameters to our tab when it is opened inside Teams?
For example:

  • Can we include custom query params in the contentUrl?
  • Is there a Teams-specific mechanism for sending custom data to the tab (e.g., via context)?
  • Does Teams strip or sanitize query parameters from the URL?

Any guidance or examples on how to handle custom parameters within Teams tabs would be extremely helpful.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions