Scheduled monitoring of new & modified files across Google Drive folders
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs on a schedule (every 60 minutes) (plus 1 other trigger). Along the way it connects Google Drive.
How it runs
Trigger: On a schedule (every 60 minutes) (plus 1 other trigger).
- List folders in root (Google Drive): work with file folder
- If: checks a condition and branches into true / false
- Trigger recursion of first level (Execute Sub-workflow): calls another n8n workflow
- Loop all subfolders (Loop Over Items (Split in Batches)): loops over the items in batches
- Exit sub workflow (Edit Fields (Set)): sets 1 field: status
- List all files in root (Google Drive): work with file folder
- List folders (Google Drive): work with file folder
- List all files (Google Drive): work with file folder
- Outputs new or updated files (Code): runs custom JavaScript code
- Wait: pauses before continuing
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait
From the author
This n8n template allows you to, on a schedule, list all files that have been modified since the last execution in a Google Drive folder and in all its subfolders While Google Drive is accessible and easy to use, file listings via API are limited to either…