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 / Merge PDf files using ...
Power Automate
Unanswered

Merge PDf files using power automate desktop

(0) ShareShare
ReportReport
Posted on by

Hi, I am trying to merge the pdf files based on the file names using PAD. I am able to merge them if the names are similar. But in a folder, we have different kinds of filenames. I have no idea. kindly help.

Eg:  abc.pdf

       abc1.pdf

       abc2.pdf

       abc3.pdf  

       xyz.pdf

       xyz1.pdf

      sample.pdf

      sample1.pdf

I need to merge the above files based on the filenames like

    abc.pdf

    xyz.pdf

    sample.pdf

 

Thanks in Advance!

    

               

I have the same question (1)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The Merge PDF files action works the same way regardless of the names of the files. You just need to work on the way you pick those files, as you need a list of files to merge. So, you likely need to either manually build the list, or use Get files in folder.

    How exactly are you doing it? Can you share some screenshots? Maybe we can then help you figure out what's wrong in your flow.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Th11 Profile Picture
    on at

    Hi @Agnius , Thank you for your response. I am using Get files in folder action and in advance section I am filtering like this. It is not merging based on the name condition. I want to merge it based on the file names like ABC.pdf, XYZ.pdf and sample.pdf. But its merging all the files as single pdf file (merged.pdf.). Not sure which part I am missing.

     

    Th11_0-1703881875316.png

    Th11_2-1703881965274.pngTh11_3-1703882014171.png

     

    Th11_4-1703882060156.png

     

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The incorrect part is that you are getting all your files into a list without any filters, apart from the fact you only get .pdf files. And then you're using that list to merge the files without any pre-processing. So, clearly, it will merge all of the files you get in Get files in folder

     

    You either need to apply some file filters there (you can include several file names, separated by a comma), or you need to Create a new list and then use a For each loop on %Files% and only add the relevant files to this new list. And then use the new list in Merge PDF files.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Th11 Profile Picture
    on at

    Hi @Agnius , Thank you so much for your response. I am new to PAD. can you please send me the screenshot regarding what you have explained that would be super helpful. Thank you!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Here you go:

    Agnius_0-1704003612481.png

     

    Note the semicolon separating the different file names in the file filter. You can obviously change the names, and also use wildcards, such as * in the file filter.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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