Last week I demoed an improved solution of my previous blog post: Using JavaScript and Cloud Flows to download files from a SharePoint document library in Power Pages in the Microsoft 365 & Power Platform community (PnP) call.
The Cloud flows are the same as on the previous post, but on the JavaScript side there were a few updates:
- Using jQuery instead of Vanilla Js
- Added more comments to the code
- Added option to preview PDF files on a new tab (be aware that you need to allow pop-ups in your browser for the site address for it to work)
![](https://i0.wp.com/michelcarlo.com/wp-content/uploads/2024/04/pdf-edited.png?resize=838%2C471&ssl=1)
Source code
The updated source code for the Power Pages page follows below:
<div class="row" style="min-height: auto; padding: 8px;">
<div class="container" style="display: flex; flex-wrap: wrap;">
<div id="divFolderBreadcrumbContainer" class="spbreadcrumb" style="margin-bottom: 16px; width: 100%;"></div>
<div class="spfoldercontent" style="min-width: 360px; width: 100%;">
<div id="table_container"></div>
<div...
Source link
More About This Author
![michelcarlo](https://i0.wp.com/365community.online/wp-content/uploads/2020/04/C6zQCIg6_400x400.jpg?resize=150%2C150&ssl=1)
-
SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff).
Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.
Array
Modern Workplace24 July 2024Power Pages Table Permissions: Configure permissions to see records from child Accounts
Modern Workplace15 July 2024Copy Dataverse contact phone numbers across different environments based on Contact e-mail address using Power Automate
Modern Workplace1 June 2024Get the current logged Power Pages user Contact ID via JavaScript and use it to create records assigned to the current user
Modern Workplace11 May 2024How to get the current Azure Devops iteration name for a project using Power Automate