How can I create a weblink to open an App inside Teams in a specific screen?

Emilio Roqueta 0 Reputation points
2025-01-10T09:41:45.8066667+00:00

Hi All,

I am using this type of link to open a PowerApps app inside Teams and it is working.

https://teams.microsoft.com/l/app/c407d4b9-d16c-4771-98c8-8634bc48fdd9?tenantId=cb2e1a4c-fc99-4904-b813-3f23276c7000

How can add a parameter or something to open a specific screen of my app directly?

Thanks for any help.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,471 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Prasad-MSFT 7,631 Reputation points Microsoft Vendor
    2025-01-10T10:56:26.6833333+00:00

    To create a weblink that opens an app inside Teams and navigates to a specific screen, you can use deep links. Deep links allow you to navigate directly to specific content or actions within an app.

    If you have a PowerApps app and you want to open a specific screen, you need to ensure that your app handles the context parameter to navigate to the specific screen.

    https://teams.microsoft.com/l/entity/c407d4b9-xxxx-8634bc48fdd9/screen123?webUrl=https://apps.powerapps.com/play/<appId>?screen=ScreenName&label=Screen 123&context={"key":"value"}

    Replace <appId> with your PowerApps app ID and ScreenName with the name of the screen you want to navigate to.

    Notes:

    • Ensure that your app is configured to handle deep links and can process the context parameter to navigate to the specific screen.
    • The specific support for context parameters may vary based on the app and its configuration.

    Ref: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-link-application?tabs=format1%2Cteamsjs-v2%2Cformat2%2Cspecific%2Cformat3%2Cformat4%2Cformat5

    Thanks, 

    Prasad Das

    ************************************************************************* 

    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.

    0 comments No comments

  2. Emilio Roqueta 0 Reputation points
    2025-01-10T11:24:28.3466667+00:00

    Hi Prasad,

    Thanks for your help!

    I am not sure if there is a difference between the link you provided or other (below) that I tested:

    https://teams.microsoft.com/l/entity/c407d4b9-d16c-4xxxx-98c8-8634bc48fdd9/screen123?webUrl=https://apps.powerapps.com/play/c407d4b9-d16c-4xxxx-98c8-8634bc48fdd9?screen=ScreenName&label=Screen 123&context={"key":"value"}

    On your link, I do not understand if I have to put the screen name in the URL and inside the app take the parameter on the context or not.

    Now, I am using this url:

    https://teams.microsoft.com/l/entity/c407d4b9-d16c-4xxxx-98c8-8634bc48fdd9/screen123?webUrl=https://apps.powerapps.com/play/c407d4b9-d16c-4xxxx-98c8-8634bc48fdd9?context={"subEntityId":"Approvals"}

    And I have this in my app, and it returns empty:

    Coalesce(Param("subEntityId"), "")

    Thanks for any help!


  3. Emilio Roqueta 0 Reputation points
    2025-01-10T16:27:02.84+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.