How to determine selected item from “Files” tab from within a custom Teams tab

%3CLINGO-SUB%20id%3D%22lingo-sub-1787426%22%20slang%3D%22en-US%22%3EHow%20to%20determine%20selected%20item%20from%20%E2%80%9CFiles%E2%80%9D%20tab%20from%20within%20a%20custom%20Teams%20tab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1787426%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3EI'm%20developing%20a%20custom%20Teams%20tab%20(using%20typescript%2C%20react%2C%20and%20sharepoint%20web%20parts)%20which%20can%20be%20added%20to%20any%20channel%20page%20(alongside%20Posts%2C%20Files...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EThe%20ideal%20scenario%3C%2FSTRONG%3E%20would%20be%20that%20the%20user%20first%20selects%20an%20item%20in%20the%20%3CEM%3EFiles%3C%2FEM%3E%20section%20(eg.%20a%20folder)%2C%20then%20opens%20the%20custom%20tab%2C%20and%20%3CSTRONG%3Ein%20there%3C%2FSTRONG%3E%20I%20can%20know%20what%20the%20selected%20item%20is.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20somehow%20achieve%20this%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1787426%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1794221%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20determine%20selected%20item%20from%20%E2%80%9CFiles%E2%80%9D%20tab%20from%20within%20a%20custom%20Teams%20tab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1794221%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F834816%22%20target%3D%22_blank%22%3E%40serban83%3C%2FA%3E%26nbsp%3B-%20Adding%20extension%20points%20to%20Files%20sections%20are%20currently%20not%20supported.%20So%20option%20would%20be%20to%20allow%20user%20selecting%20file%2Ffolder%20from%20your%20Tab.%20Similar%20to%20what%20%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F64386620%2Fdetermine-selected-item-from-files-tab-from-within-a-custom-teams-tab%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHilton%20suggested%20on%20Stackoverflow%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1795518%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20determine%20selected%20item%20from%20%E2%80%9CFiles%E2%80%9D%20tab%20from%20within%20a%20custom%20Teams%20tab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1795518%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F79135%22%20target%3D%22_blank%22%3E%40Wajeed%20Hanif%20Shaik%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20see...%3C%2FP%3E%3CP%3ESo%2C%20is%20this%20possible%20currently%2C%20or%20is%20it%20under%20development%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I'm developing a custom Teams tab (using typescript, react, and sharepoint web parts) which can be added to any channel page (alongside Posts, Files...).

 

The ideal scenario would be that the user first selects an item in the Files section (eg. a folder), then opens the custom tab, and in there I can know what the selected item is.

 

Can I somehow achieve this ?

 

Thanks.

2 Replies
Highlighted

@serban83 - Adding extension points to Files sections are currently not supported. So option would be to allow user selecting file/folder from your Tab. Similar to what Hilton suggested on Stackoverflow.

Highlighted

@Wajeed Hanif Shaik 

I see...

So, is this possible currently, or is it under development ?