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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (23,022)