Wouldn’t it be cool if you could view Word, PowerPoint & HTML files stored in SharePoint in your Power Apps in the PDF Viewer control with nothing more than a single expression / formula on the Document property of the control. One line of code, no Power Automate flow 😊. That’s it.
In this blog four alternate techniques are outlined that enable App Makers to render the practically any type of document stored in SharePoint Document Libraries in PowerApps
1. Actual PDF documents ( Basic Flow )
2. Word documents, PowerPoint presentations, HTML files (and numerous other document types) converted to PDF documents on-the-fly
3. Thumbnail images of the documents generated on-the-fly
4. Actual PDF documents
( Advanced Flow with Graph APIs )
This blog demonstrates how App Makers can consume content from SharePoint using dynamic data sources leveraging the Graph v2 APIs with Power Automate flows within their Power Apps. The general highly reusable concepts can equally enable countless other Power App use cases.
The app showcased in this blog demonstrates how a Booking System can be implemented leveraging PowerApps, Power Automate flows, SharePoint, a Microsoft Word template and on-the-fly conversion of documents to PDFs
Showcase of a Booking System & Email Campaigns Power App leveraging a SharePoint Document Library associated with MS Word template to automatically generate a Booking Confirmation document (alternative solution vs using the Word Online Premium Connector)