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

Notifications

Announcements

Community site session details

Community site session details

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

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard