Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Ubglvd205nK3Qny1tI0nKk
Power Automate - Using Flows
Unanswered

Merge multiple files in multiple folders into one file using OneDrive Create a File Action

Like (0) ShareShare
ReportReport
Posted on 15 Dec 2023 19:03:45 by 134

Hello,

 

I'd like to know if there is a way for Power Automate to take multiple files, stored within multiple folders, of a document library, and combine all of those files into one file. Then to take that file and convert it to a PDF? I've done some research and can see how to take one file and use OneDrive's "Create file" action and then convert the file to PDF using OneDrive's "Convert file (Preview)" action. In my case I need to take about 25 separate PowerPoint files and then create one PDF of the slides. I do not have access to premium connectors or have access to Third Party Muhimbi PDF connector. Any help would be greatly appreciated. Thanks.

  • Gdarmon Outlook Profile Picture
    372 on 19 Dec 2023 at 06:51:02
    Re: Merge multiple files in multiple folders into one file using OneDrive Create a File Action

    Here are the steps you can follow:

    Use the “List files in folder” action to list all the files in the folders you want to merge.
    Use the “Apply to each” action to loop through each file.
    Use the “Get file content” action to get the content of each file.
    Use the “Append to array variable” action to append the content of each file to an array variable.
    Use the “Create file” action to create a new file with the content of the array variable.
    Use the “Convert file (Preview)” action to convert the file to a PDF.

     

    Gill

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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 7 Super User 2025 Season 1

#1
rzaneti Profile Picture

rzaneti 7 Super User 2025 Season 1

#3
vipuljain03 Profile Picture

vipuljain03 4

Overall leaderboard

Featured topics

Restore a deleted flow
Loading started
Loading complete