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 / Wait for file - wildcard?
Power Automate
Unanswered

Wait for file - wildcard?

(7) ShareShare
ReportReport
Posted on by 14

Ì have a folder where XML-files with unknown name will be written to.
It would be perfect if you could add a "Wait for file" and set the path with a wildcard - e.g. C:\Temp\*.xml but this doesn't seem to work.

This would be in a while loop - and the flow would wait for a file to appear and then do certain operations.

I could use a "Get files in folder" in a loop with a for each - but that doesn't seem effective.

Is there any other way to solve this?

I have the same question (0)
  • PierrePetrucci Profile Picture
    3 on at

    +1 I also need to use the same in my organisation if someone know how to do it ...
    Thks

  • fraenK Profile Picture
    2,125 on at

    PAD has no local triggers. So you can only check the files in a folder within a loop and filter by new files with the extension xml. Or schedule the run through a cloud flow.

  • LucianoGomesBR Profile Picture
    on at

    Hi @LHole ,
    I was looking for the same information but I did not find it.
    So I created a manual checker as you can see below

    LucianoGomesBR_0-1637953785641.png

    Get files in folder allows you to use wildcard *.
    I hope this helps.

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    The wildcard option may have worked in versions prior to 2.14.
    As of 2.14 the wildcard stopped working in file operations.
    But Microsoft will have a new version ready mid-dec. that should fix all the 2.14 bugs. or so they say.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    How often do you plan to run this?  Like one user said, there is no trigger, you still have to start the process manually. 

    if you could record somewhere the last time the bot was ran (ex. Environment variable or in Excel, etc), then you could say:

     

    Get files (*.xml) in folder - sort by date last modified descending

    for each file in files

    if date last modified is before %lastrun% (the date/time of the last run)

         End flow

    endif

    ‘Do something with file

    End (for each)

     

    this will process them in order of most current to least current and will stop on the file last modified before the last run. 

  • gabriel_ilx Profile Picture
    30 on at

    This solution worked for me, thanks!89d6a923-beb4-4cd4-88f5-860178880921.png

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
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard