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 / What is the best way t...
Power Automate
Suggested Answer

What is the best way to quickly filter and capture filenames which are stored on sharepoint?

(1) ShareShare
ReportReport
Posted on by 566
Hello,
 
I have JPG files stored on multple subfolders on sharepoint (maximum of 2000 files stored per subfolder. A total of 50 000 JPG files stored on multiple sub-folders.
i need to find the best way to filter these files (the faster way) with the filter condition using part of filename
 
For instance if i have on one sub-folder 2000 files with these filenames
PORTUGAL LISBON 1
PORTUGAL LISBON 2
PORTUGAL LISBON 3
SPAIN MADRID 1
SPAIN MADRID 4
ITALY ROMA 1
ITALY ROMA 3
ITALY ROMA 4
 
i need to find the faster way to filter all PORTUGAL LISBON filenames and store them on a sharepoint list:
PORTUGAL LISBON 1
PORTUGAL LISBON 2
PORTUGAL LISBON 3
 
I have added some columns on sharepoint to add filtering options and using a formula on a power app to filter filenames
but maybe there are other faster ways to filter filenames.
 
Please if you have some examples cloud you help me?
Thank you
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at
    Hi,
     
    You have to use this filter query if you are trying in power automate
     
     
    substringof('PORTUGAL LISBON',FileLeafRef)
     
    Here FileLeafRef represent the column/attribute having file name. 
     
     
    Hope it helps !
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard