Data Sync & ETL
Archive Empty Pages in a Notion Database
On a schedule, it reads every page of Notion databases, checks which have empty properties and content and archives them.
What it does
# Archive empty pages in Notion Database ## Overview Automated workflow: Archive empty pages in Notion Database. This workflow processes data and performs automated tasks. ## Workflow Details - Total Nodes: 11 - Node Types: 6 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - Get All Databases: notion - Get All Database Pages: notion - Get Page Blocks: notion - Process Blocks: function - SplitInBatches: splitInBatches - Check for empty properties: function - Archive Page: notion - If toDelete: if - If Empty Properties: if - Every day @ 2am: cron - ... and 1 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible
The steps
- Get All Databases
- Get All Database Pages
- Get Page Blocks
- Process Blocks
- SplitInBatches
- Check for empty properties
- Archive Page
- If toDelete
- If Empty Properties
- Every day @ 2am
- Error Handler
Similar automations