OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
419 stars 192 forks source link

How to get Teams App info ? #1860

Open telltokichu opened 11 months ago

telltokichu commented 11 months ago

I'm trying to implement Deep link in Teams Toolkit React app. For that I need App id and Entity id - I can get Entity Id from appContent.page.id but I could not get App id, Is there any way to get Manifest info or App info of a Teams app ?

ghost commented 11 months ago

Hi telltokichu! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Meghana-MSFT commented 11 months ago

@telltokichu - Tab context does not return the App id, you can get the manifest id using below ways

  1. From Teams admin center image

  2. You can get externalId using Graph https://learn.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0&tabs=http

vikramtha commented 11 months ago

@telltokichu

Are you using this deeplink for page navigation? And if so, is this in the New Teams Client or the older one

telltokichu commented 11 months ago

@Meghana-MSFT I need to get App Info via Code

@vikramtha I'm using deeplink to open app from Email and It is new Teams Client

anmaur commented 11 months ago

@telltokichu, What is the deeplink or scenario for which you are looking to retrieve AppId/EntityId?

telltokichu commented 11 months ago

@anmaur I need to email a deeplink url which will open specific app in teams

anmaur commented 11 months ago

Thanks for sharing that. I would upvote the @Meghana-MSFT 's comment for the recommended solutions as we don't currently support providing AppId from teamsJs sdk and you could try to get an ExternalId by calling the Graph API

nwojod-MSFT commented 11 months ago

@telltokichu, thank you for your feedback. We have added your request to our backlog as a feature request, but we cannot provide an ETA for implementation due to the high volume of requests we get. We will update this thread accordingly.