I'm using the Graph API to proactively install a Teams bot for all users in an organization.
I need to retrieve the teamsAppId
by externalId
like so :
GET https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=externalId eq '{IdFromManifest}'
Is it safe to query the teamsAppId
once and keep it in the appSettings?
When an app is published to the Microsoft Teams apps catalog an unique id (teamsAppId
) is generated for the app and this id is immutable and can be stored in the appSettings
.
I'm storing teamsAppId
in the local SQLite db and I've never had a problem with id's immutability.