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 / How to handle dynamic ...
Power Automate
Unanswered

How to handle dynamic file path using wild cards

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I have to check if a file is present in a folder. The format of the file name is "Broadband prevet dd-mm-yyyy.xlsx". The date is dynamic here. Can anyone please help how to handle this dynamic date as it would be changing. Iam using Broadband prevet *.xlsx. But it is not working.  I want to achieve this on power automate desktop. 

I have the same question (0)
  • burque505 Profile Picture
    398 on at

    This is limited to your specific use case as stated. It will only work if the files you're looking for are strictly in that format. The message displayed at the end shows how it will fail if a file has the same prefix but extra characters after that.

    flow.PNG

    (There's a space after "Broadband prevet ", like that without the quotes.)

    save variable.PNG

    get files.PNG

    Files for test:

    files in folder.PNG

    Message:

    message-1.PNG

     

    However, this method will eliminate the 'guinea pig' file displayed above:

    get_2.PNG

    This will work for your case also, but isn't as flexible.

     

    get_3.PNG

  • Angelica650 Profile Picture
    6 on at

    Is there a way to read the file using the powerautomate using dynamic file names?  it refuses me to use the variable as a file path

  • Henrik_M_Aller Profile Picture
    4 on at

    Since the output of Get files is a list, you have to provide an index for a file path input to work, such as %Files[0]%

  • dw2099 Profile Picture
    4 on at

    This is a huge limitation of power automate.  If you need this functionality JAMS scheduler is a better option.  

  • Pavel_NaNoi Profile Picture
    1,074 on at

    You can use a get file activity followed by a parse of the entire list for multiple matches with a regex that checks for "Broadband prevet" followed by either a regex that just finds any date (just search for some online if need be) or create your own custom one , e.g. "Broadband prevet \d\d-\d\d-\d\d\d\d" and there you'll have a list containing all the file paths to the files that you want, that you can do w/e you want to with.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard