web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get file that C...
Power Automate
Unanswered

How to get file that CONTAINS a word

(0) ShareShare
ReportReport
Posted on by 4

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?

  • fraenK Profile Picture
    2,125 on at
  • ruland16 Profile Picture
    4 on at

    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 Profile Picture
    2,125 on at

    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#extractdata

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard