What is the method for sending variable parameters when opening an app added to Mobile Teams via a deep link?

lee younghee 20 Reputation points
2024-02-02T08:16:54.22+00:00

I have created a personal app within Teams. This personal app calls a specific URL. I wanted to provide a deep link for accessing this personal app that I created. From my research, I created the deep link in the following format: https://teams.microsoft.com/l/entity/{app-id}?user_id=12345 I aim to dynamically add parameters to the deep link and have the personal app perform various tasks through these parameters. However, the added parameters are not being properly transmitted. The added contents URL is https://mbtm73.naonsoft.kr/ekp/inc/azure/guest/openTeamsWebView?pageType=eap, but only the pageType is transmitted, and values that should be variable, like user_id, are not received by the controller. It seems that the contents URL is called when the app is called via the deep link. I am curious about how to dynamically assign parameters to the deep link.User's image

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,922 questions
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,186 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,594 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ran Hou-MSFT 7,505 Reputation points Microsoft Vendor
    2024-02-05T02:09:32.3733333+00:00

    Hi @lee younghee Thanks for visiting our forum. Microsoft Teams tag is mainly focused on the general issue of Microsoft Teams application troubleshooting. Based on your description, this problem is related to Teams development, which we do not support. So, we will add Teams development to your thread. The following is for informational purposes only: Based on our research, I found l relevant link for the issue: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-link-application?tabs=teamsjs-v2 Hope the above information is helpful for you!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Prasad-MSFT 6,586 Reputation points Microsoft Vendor
    2024-02-28T12:02:22.5566667+00:00

    Yes, it is possible to create a deep link to your personal app in Teams. You can do this by manually configuring the deep link using your app ID or by using the TeamsJS library. The basic format of a deep link is: https://teams.microsoft.com/l/entity/<appId>/<entityId>?webUrl=<entityWebUrl>&label=<entityLabel>&context=<context> where appId is the ID for your Teams Application and entityId is the ID for the specific tab you are linking to. https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links

    You can also dynamically add parameters to the deep link by including them in the context field of the deep link URL. The context field is a JSON object that can contain any data you want to pass to your personal app. When the user opens the deep link, your app can extract the data from the context object and use it to perform various tasks.

    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

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.