web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Get Files (properties only) multiple file types

(1) ShareShare
ReportReport
Posted on by 55
Greetings,
I've build a flow that checks for certain types of Excel files(csv, xlsx) and moves them.  I'm struggling with having the "get files" property recognize both types.  If I use .xlsx or .csv the flow works as designed.  If I try any combination of the two, no errors, just runs without moving any of the files.
 
Any thoughts?  Also, if it helps all files lead with a 2024*.* naming convention.
 
 
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    15,315 Super User 2025 Season 2 on at
    Get Files (properties only) multiple file types
    Hi,
     
    I wasn't able to do this directly with a filter query expression in Get Items but I was able to successfully make it work inside two conditions.  Here's my flow:
     
     
     
     
     
    Condition 2 I am checking:
     
    length(items('For_each')?['{FilenameWithExtension}']) greater than or equal to 4
     
    and
     
    substring(items('For_each')?['{FilenameWithExtension}'],0,4) contains string('2024')
     
     
    Works in testing.  I had one excel file that started with 2024.  So the actions you want to do with those files would fall under the condition 2 true side.
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     


     
  • Verified answer
    trice602 Profile Picture
    15,315 Super User 2025 Season 2 on at
    Get Files (properties only) multiple file types
    Hi,
     
    Also confirming this picked up a .csv file that starts with 2024 also.  Always glad to help!
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     


     

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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard