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 / Example of power autom...
Power Automate
Unanswered

Example of power automate that finds files based on part of the name

(1) ShareShare
ReportReport
Posted on by 43
Does anyone have an example of a Power Automate that finds files in a folder based on part of the file name. I have a list of file names such as C1234. I need to find the corresponding file in a folder of files with names structured like "Applesauce_C1234_bbb123.pdf". So I need to scan the entire filename for the matching 5 characters.
Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,684 Super User 2025 Season 2 on at
     
    If your files are stored in OneDrive, then you can use the pattern matching feature in the "Find files in a folder path" action:
     
    But I suspect you want to use SharePoint. Unfortunately the current SharePoint connectors don't provide the same functionality as the  OneDrive "Find files in a folder path" connector. For SharePoint you would need to use a combination of "Get files (properties only)" action and the "Filter array" using it with functions like:
    startsWith()
    endsWith()
    contains()
     
    Another method is to use Power Automate and the SharePoint Search REST API endpoint as explained in this video:


    Ellis

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard