Current Situation
Currently, when working with database nodes (PostgreSQL, Supabase, etc.) or data tables in N8N, there’s no native, straightforward way to export the results directly to CSV format. Users need to create additional nodes and workflows to transform and save data as CSV files.
Problem
This creates friction in common workflows where users need to:
-
Export database query results for reporting
-
Generate CSV files for data analysis
-
Create data backups in CSV format
-
Share data with non-technical stakeholders
Proposed Solution
Add a built-in “Export to CSV” option in data table views and database nodes with the following features:
Option 1: In the Data Table UI
-
Add an “Export to CSV” button in the data table view (similar to the current Copy/JSON options)
-
Allow users to export visible results directly from the UI
Option 2: As a Node Output Option
-
Add a toggle/option in database nodes: “Output as CSV”
-
When enabled, the node would output the data in CSV format ready to be saved
Option 3: New “Export Data” Node
-
Create a dedicated node for data export operations
-
Support multiple formats: CSV, Excel, JSON, XML
-
Include configuration options for:
-
Delimiter selection (comma, semicolon, tab)
-
Header row inclusion
-
Encoding (UTF-8, ISO-8859-1, etc.)
-
Date format customization
-
Use Cases
-
Automated Reports: Generate daily/weekly CSV reports from database queries
-
Data Integration: Export data to be consumed by legacy systems that only accept CSV
-
Backup & Archive: Create periodic CSV backups of critical data
-
Compliance: Generate audit trail files in standardized formats
-
Quick Analysis: Export data for quick analysis in spreadsheet applications
Benefits
-
Reduced Workflow Complexity: Eliminate the need for multiple transformation nodes
-
Better User Experience: Intuitive export functionality
-
Time Savings: Speed up common data export tasks
-
Standardization: Consistent CSV export across different data sources
Technical Considerations
-
Support for large datasets (streaming for big exports)
-
Configurable CSV options (delimiter, quote character, escape character)
-
Proper handling of special characters and encoding
-
Memory-efficient implementation for large exports
Examples
Current Workaround:
DB Query → Code Node (transform) → Write Binary File → Save to Storage
Proposed Flow:
DB Query → Export CSV Node → Save to Storage
Or simply:
DB Query (with "Export as CSV" option enabled) → Save to Storage
Related Features
-
Could be extended to support other export formats (Excel, Parquet, JSON Lines)
-
Could integrate with existing file storage nodes (Google Drive, Dropbox, S3)
Screenshots
[Include the screenshot showing the Supabase data table that needs export functionality]
Additional Context
This feature would be particularly valuable for:
-
Legal tech professionals working with case management data
-
Data analysts creating regular reports
-
Teams migrating between systems
-
Compliance and audit requirements