Import & Export
Bulk import data into forms and export entries for analysis.
FormWork provides robust import and export capabilities for managing data in bulk. Import existing data into forms or export entries for analysis, backups, or integration.
Exporting Entries
Quick Export
Export entries directly from the entry list:
- Go to your form’s Entries tab
- Select entries (or select all)
- Click Export
- Choose format
- Download the file
Export Options
| Option | Description |
|---|---|
| Format | CSV or JSON |
| Fields | All fields or selected columns |
| Filters | Apply current filters to export |
| Include Metafields | Add metafield values |
| Date Range | Limit by submission date |
CSV Export
CSV exports include:
- Header row with field labels
- One row per entry
- Nested fields flattened with dot notation
- Repeatable groups expanded to multiple columns
Example:
entry_id,name,email,address.street,address.city
ent_001,John Smith,[email protected],123 Main St,New York
ent_002,Jane Doe,[email protected],456 Oak Ave,Boston
JSON Export
JSON exports preserve full structure:
{
"entries": [
{
"id": "ent_001",
"created_at": "2024-01-15T10:30:00Z",
"answers": {
"name": "John Smith",
"email": "[email protected]",
"address.street": "123 Main St",
"address.city": "New York"
}
}
]
}
Large Exports
For forms with many entries:
- Export runs as a background job
- Progress indicator shows completion
- Download link provided when ready
- Link expires after 24 hours
Importing Entries
Preparing Import Data
Create a CSV or JSON file matching your form structure:
- Use field IDs as column headers (CSV) or keys (JSON)
- Match data types (numbers, dates, etc.)
- Format dates as ISO 8601 (YYYY-MM-DD)
- Leave optional fields empty if not applicable
Import Process
- Go to form Entries tab
- Click Import
- Upload your file
- Map columns to fields
- Preview the import
- Confirm and import
Column Mapping
The import wizard helps map your data:
- Auto-matches columns with same names as fields
- Manual mapping for mismatched names
- Skip columns you don’t want to import
- See preview of how data will be imported
Import Options
| Option | Description |
|---|---|
| Create New | All rows create new entries |
| Update Existing | Match on a key field and update |
| Upsert | Create new or update if exists |
| Skip Duplicates | Skip rows matching existing entries |
Validation During Import
The import process validates:
- Required fields have values
- Data types match field types
- Select/radio values exist in options
- Custom validation rules pass
Invalid rows are flagged for review.
Handling Errors
After import attempt:
- View success and error counts
- Download error report
- Review specific issues
- Fix and re-import failed rows
Common issues:
- Missing required fields
- Invalid date formats
- Values not in select options
- Data type mismatches
Import Templates
Download Template
Get a template matching your form:
- Go to Import
- Click Download Template
- Template includes:
- Column headers for all fields
- Example data row
- Instructions sheet
Template Format
name,email,phone,category,created_at
John Example,[email protected],555-1234,sales,2024-01-15
API Import/Export
Export via API
GET /api/v1/forms/{form_id}/entries/export
Authorization: Bearer fwk_your_api_key
Query parameters:
- format: csv or json
- fields: comma-separated field IDs
- from: start date
- to: end date
Import via API
POST /api/v1/forms/{form_id}/entries/import
Authorization: Bearer fwk_your_api_key
Content-Type: application/json
{
"entries": [
{
"answers": {
"name": "John Smith",
"email": "[email protected]"
}
}
]
}
Best Practices
Before Importing
- Test with a small sample first
- Validate data in spreadsheet before upload
- Back up existing data if updating
- Review field mappings carefully
Data Preparation
- Clean data before import
- Standardize formats (dates, phone numbers)
- Remove duplicate rows
- Check for empty required fields
Large Imports
For imports over 1,000 rows:
- Split into smaller batches
- Import during off-peak hours
- Monitor for errors
- Consider using the API for automation
Regular Exports
For backups and analysis:
- Schedule regular exports
- Store exports securely
- Use consistent naming conventions
- Document what each export contains