Forum Discussion

Chris_Mancini's avatar
Chris_Mancini
Brass Contributor
Dec 01, 2022

Powerapps and Deep Linking to MS Teams Files

I have a MS Team with a standard document library within the Files tab. On this library I have created a JSON Column Format on a column with a link to a PowerApp. When I click on the link within the MS Teams interface the PowerApp loads within the MS Teams interface because the href target is set to _self. This link sends Parameters to the PowerApp with the ID of the file, the FileLeafRef, and the FileRef. I use these parameters within the PowerApp but specifically use the FileLeafRef and the FileRef to form a link such that when the Submit button of the PowerApp is clicked I can use the Launch function within the PowerApp to return the user back to the location within the library where they clicked the link. This works but instead of loading the original location within MS Teams it shows the users the Sharepoint Library view. I approached it this way because PowerApps doesn't have a "window.history.back" capability and can only navigate within the PowerApp.

 

I would like to deep link back into the library but after reviewing the documentation there doesn't seem to be a way to target the Files tab. I am hoping for any guidance someone could provide for how to accomplish this. 

No RepliesBe the first to reply