Count Files in a Folder

Hey

I’m looking to get a notification when a folder in Google Drive hits a certain number of files.

Is there a way of doing this?

you can do it by search for files and folders google drive module

the scenario would look something like this if the file limit reached

when file count within limit

first add a search for file/folders module and don’t specify anything in the search input

then add an aggregator to turn the bundles into an array and give the length of it which will the number of files in that folder

now add a send email module fill up all the required values and set up the filter

image

image

you can play around webhooks and link it to this scenario, or you can trigger this scenario from it
you can link it with a file upload create module watch files in a folder module
once use case would be when a user uploads a new file the scenario checks the file limit and send a notification

1 Like