web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert Multiple Docum...
Power Automate
Answered

Convert Multiple Documents to PDF?

(0) ShareShare
ReportReport
Posted on by 45

I have a scheduled flow that runs once a week and creates Word documents from a template. I have the premium Word connector so I can convert each of the Word documents to PDF. I want to loop through the library and convert multiple documents to PDF. Is this something I can do with the Word action? It looks like it's forcing me to choose a specific file and convert that file. I have tried populating variables with the file path and file name and adding those into the action, but it errors out.

 

Is it possible to use Apply to Each and loop through the Word documents to convert each of them to PDF? Or do I have to use a Switch and do them all separately?

 

If I have to use a Switch and do them all separately, how can I build the flow dynamically so it can count the number of documents in the library and convert them? The number will change weekly.

 

We would prefer not to use OneDrive, but if that's the only way to make this work, so be it. Any suggestions are welcome.

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @This-n-That ,

     

    Are you using the following Action to convert word to PDF? The problem you are currently encountering is that you don't want to use this action, you want to create a flow that runs on time, which can automatically convert word to PDF.

    vmengmlimsft_0-1695104112930.png

    Whether to use OneDrive depends on where your files are saved. If you can use the action in OneDrive to get the file, then I suggest you use the action in OneDrive to convert the file to PDF.

    The following is the main content of my test:

    1)Get all files in a folder.

    vmengmlimsft_1-1695104413107.png

    2)Operate on each file. I use a condition to determine if the file in the folder is already in PDF format.

    vmengmlimsft_2-1695104502785.png

     

    Hope this helps you!

    -------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard