Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Unanswered

Merge PDf files using power automate desktop

Like (0) ShareShare
ReportReport
Posted on 28 Dec 2023 18:59:45 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!

    

               

  • Agnius Bartninkas Profile Picture
    10,045 Most Valuable Professional on 31 Dec 2023 at 06:21:00
    Re: Merge PDf files using power automate desktop

    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.

  • Th11 Profile Picture
    on 30 Dec 2023 at 16:40:57
    Re: Merge PDf files using power automate desktop

    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
    10,045 Most Valuable Professional on 30 Dec 2023 at 05:02:04
    Re: Merge PDf files using power automate desktop

    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 29 Dec 2023 at 20:36:29
    Re: Merge PDf files using power automate desktop

    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
    10,045 Most Valuable Professional on 29 Dec 2023 at 04:49:01
    Re: Merge PDf files using power automate desktop

    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.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 110 Super User 2025 Season 1

#2
CU12050101-0 Profile Picture

CU12050101-0 24

#3
Nived_Nambiar Profile Picture

Nived_Nambiar 20 Super User 2025 Season 1

Overall leaderboard
Loading started