Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Get contents of any document library from any Team in MSTeams

(0) ShareShare
ReportReport
Posted on by 292

Hi,

I'd like to be able to display the file contents in any Team. I'd like to be able to select the Team from a dropdown and have its contents displayed in a gallery. Is it doable? Solution must not use any premium connectors, and solution should be low code/ no code as much as possible. Thanks!!

Categories:
  • Brayden Larson Profile Picture
    on at
    Hello Re: Get contents of any document library from any Team in MSTeams

    Hello karimabdelrazek,

     

    apologies, it clicked accept solution on accident.

     

    if that is the case then all you need to do is select the document library as a datasource

    braydenlarson_0-1603895426120.png

    You will just need to make sure you add the SharePoint Library into the app under your choices of datasource on the lefthand side when making the app

    braydenlarson_1-1603895477554.png

     

    by doing this with a gallery you will see a list of items for the library in the Gallery

    braydenlarson_2-1603895505374.png

     

  • Verified answer
    karimabdelrazek Profile Picture
    292 on at
    Re: Get contents of any document library from any Team in MSTeams

    @braydenlarson . Thank you for your reply and my apologies for the inaccurate wording. I only want to display list of files in a document library and NOT the contents of the file. 

  • Brayden Larson Profile Picture
    on at
    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard