Re: Get contents of any document library from any Team in MSTeams
Hello Karimabdelrazek,
Currently there is no direct way to view the content of a File inside of a PowerApp application. The closest we have the PDF view Control which is designed explicitly for PDFs
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-pdf-viewer
There have been posts in the Ideas forum asking about this and while I have found one from last year marked as Planned it has not been implemented at this time.
If this is data for something like an Excel Spreadsheet, you can use a Gallery to grab a table of items as long as you make sure the spreadsheet has a table to pull from. The nice thing about this is you can technically have it show only identifiers and clicking on the gallery will then take you to a more details page where there is a display form that can show the full details of what is in each field(This works for any database source as well such as SQL or SharePoint).
However, if this is a Word document right now there is currently no method to pull the content of the word document into PowerApps(There is a get File content action for SharePoint to grab the file, but this does return information that would be readable to select).
You can always upvote/post your suggestion to the Idea's forum
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas
Here is a link to a similar ask:
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Word-Office-documents-viewer-control-in-PowerApps/idi-p/19431
Have a good day,