Smart nested folder creation in OneDrive with existence checking
UnknownWhat this workflow does
This workflow has 11 nodes and runs when another workflow calls it. Along the way it connects Microsoft OneDrive and Datastore (community).
How it runs
Trigger: When another workflow calls it.
- Paths (Code): runs custom JavaScript code
- clearParent (Datastore): clear
- Split Out: splits a list into separate items
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Search (Microsoft OneDrive): search (folder)
- Exists (If): checks a condition and branches into true / false
- setParentFound (Datastore): uses Datastore
- getParent (Datastore): get
- Create a folder (Microsoft OneDrive): create (folder)
- setParentCreated (Datastore): uses Datastore
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-datastore is verified or supports 3.0 (used in setParentFound, setParentCreated, getParent).
Nodes used (7)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - Microsoft OneDrive
n8n-nodes-base.microsoftOneDrive - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Datastore
n8n-nodes-datastore.datastore
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works - It creates a nested folder in your OneDrive's My Files - You could be creating folders like: Foobar Foobar/Barfur Foobar/Barfur/Furbar Workflow…