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.
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:
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.