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 / SharePoint Get a Folde...
Power Automate
Unanswered

SharePoint Get a Folder Meta data

(0) ShareShare
ReportReport
Posted on by 8

I'm working on deleting SharePoint folders less than 6 months old and with less than 1 file size in it. However, I'm running into an issue with the SharePoint 'Get Folder Meta Data' connector saying 'Folder Cannot be Found', any ideas?

Here are the steps I'm following:

1. Manual Trigger

2. Get file (properties only)

3. 'Apply to each' -> Get file meta data

4. Condition (If greater than 6 months AND 'Size' less than 1)

5. Delete

(I have the compose in there to check for null, converting array to string, and getting folder path (if needed))


aguirrjo_0-1702509597802.png

 

aguirrjo_0-1702509728648.png

 


 

 

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Do you mean you want to delete empty folders?

     

    Note that you need to filter by the IsFolder  attribute first.

  • aguirrjo Profile Picture
    8 on at

    Yes, delete empty folders that are older than 6 months,

     

    So set a Condition If 'IsFolder' equals true first? Gotcha.

     

    I also changed 'Get a file meta data' to 'Get a folder meta data'

     

    aguirrjo_1-1702576390050.png

     

    Seems to be working on some folders, so that's good. Lemme keep testing and validating.


    Thanks @lbendlin 

  • aguirrjo Profile Picture
    8 on at

    It seems like it's still pulling files within those folders and errors out saying 'Folder Cannot be Found"

     

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    go through the run history with a fine comb.  you have subfolders maybe?

  • aguirrjo Profile Picture
    8 on at

    Yes subfolders and folders with Excel files within in, and it would find the Excel and throw the error saying 'Folder Cannot be Found' (when it was a Excel file)

    I did set 'No' for 'Include Nested Items' and it ran successfully

    aguirrjo_0-1702587384487.png

     

  • aguirrjo Profile Picture
    8 on at

    Now for some odd reason, SharePoint connector 'Get a folder meta data' is return Size 0, when there's 7 items in the folder? Any suggestions?

    @lbendlin 

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
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard