Overview
PassTru provides robust CSV import and export functionality for bulk attendee management. Import hundreds of attendees at once or export data for analysis and record-keeping.CSV Import Process
Download Template
Click CSV Template to download a template file with the correct column headers for your event.
Fill Template
Open the CSV in Excel, Google Sheets, or any spreadsheet editor and add your attendee data.
Template Generation
The CSV template automatically includes columns based on your event’s configured attendee fields:src/lib/csv.ts
Example Template:
For an event with fields: Name, Email, Department, Table, Dietary
CSV Format Requirements
File Specifications
Must be a
.csv file (not .xlsx or other formats)Text encoding (UTF-8 recommended for international characters)
Comma-separated values (commas as field separators)
Maximum 1,000 rows per import (excluding header row)
Required Columns
Name
Attendee full name (max 200 characters)
Valid email address (validated with regex)
Optional Columns
Include any attendee fields configured for your event:- Department
- Organisation
- Seat
- Table
- Booth
- Dietary
- Remarks
Data Validation
PassTru performs comprehensive validation during CSV import:Field Validation
src/pages/event/AttendeeManagement.tsx
Custom Field Validation
Custom fields must meet naming requirements:Field names:
- 1-50 characters
- Letters, numbers, underscores, spaces, hyphens only
- No special characters (@, #, $, etc.)
Value Sanitization
All imported values are sanitized to prevent injection attacks:Error Handling
- Validation Errors
- Token Errors
- File Errors
If validation fails, PassTru displays up to 5 specific errors:Fix the errors in your CSV and re-import.
Token Deduction
Each imported attendee consumes one attendee token:src/pages/event/AttendeeManagement.tsx
Unique ID Generation
Each imported attendee receives an auto-generated unique ID:Unique IDs:
- 8 characters long
- Alphanumeric (A-Z, 0-9)
- Used for check-in and QR codes
- Example:
AB12CD34
CSV Export
Export attendee data for backup or analysis:Export Options
- Full Attendee Export
- Event Data Export
- Organization Reports
Includes all attendee data and check-in status:Columns:
- Name
- Unique ID
- Checked In (Yes/No)
- Check-In Time
- Check-In Method
- Portal Active (Yes/No)
Export Implementation
src/lib/csv.ts
CSV Injection Prevention
PassTru protects against CSV formula injection attacks:src/lib/csv.ts
CSV Parsing
PassTru uses a robust CSV parser that handles:- Quoted fields with commas
- Escaped quotes within fields
- Multi-line values
- Empty rows (automatically skipped)
src/lib/csv.ts
Best Practices
Use Templates
Always start with the downloaded template to ensure correct column headers.
Validate Data
Review your CSV before importing to catch errors early.
Test Small
Import a small batch first to verify the format works correctly.
Keep Backups
Export data regularly for backup purposes.