cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ruland16
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?

3 REPLIES 3
fraenK
Memorable Member
Memorable Member

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

 

 

 

fraenK
Memorable Member
Memorable Member

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:

https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/webautomation#extrac...

https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/variables#removeitem...

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Top Solution Authors
Users online (2,894)