SOLVED

Read config data from within Teams app?

%3CLINGO-SUB%20id%3D%22lingo-sub-1534746%22%20slang%3D%22en-US%22%3ERead%20config%20data%20from%20within%20Teams%20app%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1534746%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20way%20to%20read%20data%20from%20the%20manifest%20file%20from%20within%20a%20Teams%20app%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20I%20would%20like%20to%20add%20some%20configuration%20data%20to%20a%20Teams%20app%2C%20which%20is%20could%20be%20read%20by%20the%20Teams%20app%20at%20runtime%20using%20Javascript.%20If%20this%20is%20not%20possible%2C%20is%20there%20some%20way%20to%20configure%20a%20Teams%20app%20with%20some%20custom%20data%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1534746%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1537571%22%20slang%3D%22en-US%22%3ERe%3A%20Read%20config%20data%20from%20within%20Teams%20app%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1537571%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F721379%22%20target%3D%22_blank%22%3E%40George71%3C%2FA%3E%26nbsp%3B%2C%20Manifest%20is%20an%20app%20package%20which%20can%20contains%20teams%20Tab%2C%20Bot%20%2C%20Message%20Extension%20and%20other%20functionality%20If%20you%20are%20willing%20to%20read%20tab%20you%20can%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fusing-teams-client-sdk%23teams-sdk-public-api%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETeams%20Client%20SDK%3C%2FA%3E%20get%20Context%20for%20your%20Tab%2C%20for%20Bot%20you%20will%20get%20the%20required%20information%20in%20Activity%20object.%20updating%20the%20manifest%20with%20dynamic%20data%20is%20also%20possible%20you%20need%20to%20call%20the%20Teams%20client%20SDK%20method%20before%20any%20tab%20loads%20for%20bots%20there%20is%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fresources%2Fbot-v3%2Fbots-notifications%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EconversationUpdate%3C%2FA%3E%20event%20which%20triggers%20whenever%20a%20Bot%20is%20installed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1544196%22%20slang%3D%22en-US%22%3ERe%3A%20Read%20config%20data%20from%20within%20Teams%20app%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1544196%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3EThanks%20for%20the%20advice.%20I'll%20take%20a%20closer%20look%20at%20the%20Teams%20Client%20SDK.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Is there any way to read data from the manifest file from within a Teams app?

 

For example, I would like to add some configuration data to a Teams app, which is could be read by the Teams app at runtime using Javascript. If this is not possible, is there some way to configure a Teams app with some custom data?

2 Replies
Highlighted
Best Response confirmed by George71 (Occasional Contributor)
Solution

@George71 , Manifest is an app package which can contains teams Tab, Bot , Message Extension and other functionality If you are willing to read tab you can use the Teams Client SDK get Context for your Tab, for Bot you will get the required information in Activity object. updating the manifest with dynamic data is also possible you need to call the Teams client SDK method before any tab loads for bots there is an conversationUpdate event which triggers whenever a Bot is installed.

Highlighted

@Trinetra-MSFTThanks for the advice. I'll take a closer look at the Teams Client SDK.