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 / Conditional merging of...
Power Automate
Answered

Conditional merging of PDFs.

(0) ShareShare
ReportReport
Posted on by 76

I am trying to merge a bunch of pdfs in a folder having a specific name. I wanted to give the PDFs name dynamically via inputs and only the pdfs having those names should be merged. Iam able to add them by giving names statically but how can I achieve it using my "filepath" variable.How can I achieve it in PAD? Like I should append user's input (filename) with that "filepath variable".

revv_0-1704279812807.pngrevv_1-1704279837881.png

Feel free to ping me for more info.

I have the same question (0)
  • Verified answer
    CristinaValdes Profile Picture
    65 on at

    Hi, exist many property in the command get files in folder, like ".Name", this property it´s the name with de extension but without the path. so, your conditional: %CurrentItem.Name = 'test.xlsx' OR CurrentItem.Name = 'test2.xlsx'%. Just two %, in the beggind and in the end, with de names in ''. propertiGetFileinFolder.jpgconditional.jpg

     

     

    I hope helped you with this. Regards

  • revv Profile Picture
    76 on at

    I did it in a round about way since the user decides what file name to choose, then stored it in a list and looped through the list. Your solution works well for my situation too.Thanks.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard