How teams create deep links to apps

Will Altria 140 Reputation points
2024-11-20T00:07:14.9866667+00:00

As shown in the title, how does teams create deep links to applications? I want to quickly access the apps that our organization frequently uses in teams by creating shortcuts on the desktop. Any guidance is greatly appreciated.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,462 questions
0 comments No comments
{count} votes

Accepted answer
  1. Robin Sheng-MSFT 4,490 Reputation points Microsoft Vendor
    2024-11-20T07:08:33.2433333+00:00

    Hi @Will Altria

    Deep links allow app users to open an app install dialog to know any information about the app or install it in different contexts. You can create a deep link to an app in the following ways:

    Configure deep link manually using the app ID

    With deep link, you can open an app installation dialog directly from your Teams client using the app ID. https://teams.microsoft.com/l/app/<your-app-id>?tenantId=<tenantId>

    <your-app-id> is your application ID (fxxxxxxx-0xxx-4xxx-8xxx-cxxxxxxxxxxx).

    Configure deep link using TeamsJS

    Apps can use the Microsoft Teams JavaScript client library (TeamsJS) to initiate the app install dialog, eliminating the need for manual deep link generation. Here's an example of how to trigger the app install dialog using TeamsJS within your app:

    // Open an app install dialog from your tab
    if(appInstallDialog.isSupported()) {
        const dialogPromise = appInstallDialog.openAppInstallDialog({ appId: "<appId>" });
        dialogPromise.
          then((result) => {/*Successful operation*/}).
          catch((error) => {/*Unsuccessful operation*/});
    }
    else { /* handle case where capability isn't supported */ }
    

    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

0 additional answers

Sort by: Most helpful

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.