Forum Discussion
CarterCC
Feb 26, 2025Copper Contributor
Missing something obvious? Teams App install with custom parameters?
This one is really throwing our team for a loop!
We are trying to pass two custom parameters (ID & Token) during app installation
- Each customer in our application has a unique ID and Token, which we need to pass when they install our Teams bot.
- We attempted to append these parameters to the installation URL as follows:
🔗 Installation URL: - https://teams.microsoft.com/l/app/feea88de-b85f-4a8a-a724-d076d8de24af?source=app-details-dialog&context={id:%20%22%22,%20token:%20%22%22}
- However, we are unable to retrieve these parameters in the installationUpdate callback.
What is the correct approach to pass and retrieve custom parameters (ID & Token) during app installation?
Thank you for any insight!
- Meghana-MSFT
Microsoft
Currently passing parameters while installing bot is not supported.
- CarterCCCopper Contributor
Hi Meghana,
What I am trying to do is to pass a flag or value in to the installation. For example, when we generate the install link, we would include a 'team ID' from our database that links the MS Teams account with our database.
How would we acheive that? - Meghana-MSFT
Microsoft
Hi CarterCC- Thank you for reporting this, we will check this and get back to you.
- Meghana-MSFT
Microsoft
Hi CarterCC - We checked this internally and got a confirmation that this is currently not supported. We currently do not support passing context in the app details deeplink query search parameters right now, the deeplink mentioned only opens app details dialog for app feea88de-b85f-4a8a-a724-d076d8de24af, we don't use the context qsp for anything here.