Post

#PowerPlatformTip 132: 'Office Files Viewer in PowerApps'

#PowerPlatformTip 132: 'Office Files Viewer in PowerApps'

TL;DR: Show PDFs, Word and Excel files straight from SharePoint inside Power Apps with the Office Files Viewer component, no Power Automate.

💡 Challenge

Viewing Office files directly in Power Apps is often a hassle, you end up wiring in complex integrations or extra tools like Power Automate, which is time-consuming and usually unnecessary.

✅ Solution

Use the Office Files Viewer component to display Office files directly from SharePoint inside Power Apps, no Power Automate required.

🔧 How It’s Done

1. Prepare the SharePoint library

🔸 Create a hyperlink column in your SharePoint list.

🔸 Convert it into an image column and add the file URLs.

2. Import the component

🔸 Download and import the Office Files Viewer component into your app.

🔸 Find the component and instructions on GitHub.

3. Configure the inputs

🔸 Set your SharePoint URL as the component’s data source.

🔸 Follow the instructions to display your files directly in Power Apps.

4. Test and optimize

🔸 Verify that files display as expected.

🔸 Adjust the view and integration to your needs.

🎉 Result

You get a user-friendly, integrated way to display Office files directly within Power Apps, no unnecessary tools, just an efficient, seamless solution.

🌟 Key Advantages

🔸 Native integration: fully built into Power Apps, no Power Automate.

🔸 Multiple file types: view PDFs, Word documents, Excel files, and more.

🔸 Time saver: streamlines file viewing so you focus on the important work.


🛠️ FAQ

1. Can I view other file formats besides PDF? Yes, you can display PDFs, Word documents, Excel spreadsheets, images and more directly from SharePoint using the component.

2. Do I need Power Automate to get this working? No. The Office Files Viewer component works natively in Power Apps, no external workflows required.

3. How do I update file URLs after setup? Update the SharePoint hyperlink/image column with new URLs, or adjust the component’s data source settings in Power Apps.

This tip is by Marcel Lehmann, Microsoft MVP (Business Applications) and founder of the Power Platform Academy – live Power Platform workshops, free or CHF 49. Join the workshop waitlist to get notified about new dates. For companies that want this implemented for them, see KMUpower – Power Platform consulting & automation for SMEs (DACH).

This post is licensed under CC BY 4.0 by the author.

Microsoft and the Power Platform product names (for example Power Apps, Power Automate, Copilot Studio) are trademarks of the Microsoft group of companies. This is an independent website. It is not operated, sponsored or endorsed by Microsoft.