Showing results for 
Search instead for 
Did you mean: 
New Member

How to get file that CONTAINS a word

Hello, I am Power Automate Desktop user. I need to get files to Variable that contains the special word. For example, I have several files in a folder and I want to get only files that contain "LOOP" word in the file name. How can I do that?

Super User
Super User

Thanks I went through this manual but I can't find any information about getting files a coording file name conditions. If I'd try to find element by xpath I'd have following expression


//*[Contains (text(), 'desired text')]


This way I could get div or element I need




Where are the files, in a file system or on a website?

The action above is for a file system which you can filter by using the "File filter" option

For a website you need to extract the list and filter it later:

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,272)