Archive empty pages in Notion database
Needs changesWhat this workflow does
This workflow has 10 nodes and runs on a schedule (legacy Cron node). Along the way it connects Notion.
How it runs
Trigger: On a schedule (legacy Cron node).
- Get All Databases (Notion): get many (database)
- Get All Database Pages (Notion): get many (database page)
- Check for empty properties (Function): runs custom JavaScript (legacy Function node)
- If: checks a condition and branches into true / false
- SplitInBatches (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Page Blocks (Notion): get many (block)
- Process Blocks (Function): runs custom JavaScript (legacy Function node)
- If: checks a condition and branches into true / false
- Archive Page (Notion): archive
Services it uses
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Function (legacy) in Process Blocks, Check for empty properties: replace with Code node, mode 'Run Once for All Items'.
- Cron in Every day @ 2am: replace with Schedule Trigger.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2022 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Process Blocks, Check for empty properties | Code node, mode 'Run Once for All Items' |
| Cron Every day @ 2am | Schedule Trigger |
Nodes used (5)
- Notion
n8n-nodes-base.notion - Function
n8n-nodes-base.function - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Cron
n8n-nodes-base.cron
From the author
This workflow will archive empty pages in your Notion databases, Add your n8n integration to the Notion databases that you want to process. To configure this workflow set the Notion credentials in the 4 Notion nodes and if needed change the time in the Cron…