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 / Get item count of OneD...
Power Automate
Unanswered

Get item count of OneDrive folder recursively

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

I'm currently setting up a flow, which should check for the file count of a specific OneDrive folder. This should be a recurse lookup, including all subfolders. Do you know any possibility? I'm using a graph call:

 

https://graph.microsoft.com/v1.0/users/usernameofonedrive/drive/root:/FolderName

 

This gives me a "childCount" of 1 item, because this folder is empty but has one subfolder where the data is located.

 

Thanks

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,079 on at
  • MMCH Profile Picture
    4 on at

    Thank you, that works, but it seems not to be the ultimate solution because not all files are returned by this search (e.g. EXE files or PS1 files).

  • VictorIvanidze Profile Picture
    13,079 on at

    Did you note the following there:

    "2021 edit: this api unfortunately doesn't return all the files. So I ended up using the sharepoint delta api to sync sharepoint data locally, then I use a mysql query to find all files of a given folder (there is a child <-> parent relation in the files/folder metadata return from the API)"

  • MMCH Profile Picture
    4 on at

    It's not feasible for me to sync the files locally. So I hope that MS will fix this...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard