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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter SharePoint fold...
Power Automate
Unanswered

Filter SharePoint folders containing specific string

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

is it possible to select only folders on Sharepoint and that only folder are selected, that contain a specific string, e.g. foldername is "20240101 Example" and it should be selected and then deleted if it contains "2024".

 

Many thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @actuallyba ,

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_0-1708594889979.png

    vyetonggumsft_1-1708596080082.png

     

    @and(equals(item()?['{Path}'],'libraryname/'),equals(item()?['{IsFolder}'],true),contains(item()?['{Name}'], string(2024)))
    length(body('Filter_array'))
    items('Apply_to_each')['ID']

     

    Best Regards,

    Sunshine Gu

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard