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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get all file names in ...
Power Automate
Unanswered

Get all file names in a sharepoint library that have 'test' in the filename

(0) ShareShare
ReportReport
Posted on by 4
I'm struggling to find the right action to get a list exported to pdf or xls of all files in a share point library that have the work 'test' in the filename.  I'm using Get Files (Properties only), but don't seem to have the query right.
Categories:
I have the same question (0)
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at
     
    Are you facing any issue, check below for few steps,
     
    • Use Get Files(properties only) Action
    • Use Filter Array action and in that write condition as contains(item()?['Name'], 'test')
    This way you can filter all the file name which contains test in it
     
    If I have answered your question, please mark it as the Answered. If you like my response, please give it a Like.
     
    Regards,
    Srini
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
     
    Try to combine the substringof with the FileLeafRef property in the Filter Query.
     
    Below is an example
    I have also added the FSObjType eq 0 as an additional filter to only retrieve files, because normally the action also returns folders.
     
    (FSObjType eq 0) and (substringof('Test', FileLeafRef))

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

Forum hierarchy changes are complete!

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard