Deduplicate and archive Notion database rows daily with an audit log
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 6 nodes and runs on a schedule (every day at 02:00). Along the way it connects Notion.
How it runs
Trigger: On a schedule (every day at 02:00).
- Get Database Rows (Notion): get many (database page)
- Find Duplicates and Build Recap (Code): runs custom JavaScript code
- Route by Item Type (Switch): routes items into 2 branches
- Archive Duplicate Page (HTTP Request): calls an HTTP API (PATCH)
- Append Run to Audit Log (Notion): append (block)
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 (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow runs daily and deduplicates a Notion database by grouping pages on a chosen property, keeping one “best” page per group (newest by default) and archiving the rest, then appending an audit recap line to a Notion log page. How it…