CSV
Understanding CSV format and its use in FileMaker integrations
What is CSV?
CSV (Comma-Separated Values) is a simple, text-based file format used to store tabular data. Each line in a CSV file represents a row of data, and columns are separated by commas. It's widely used for data exchange between different applications and databases.
Basic Structure
Key Characteristics
- Simple format: Easy to understand and create
- Universal support: Nearly all spreadsheet programs and databases can work with CSV
- Human-readable: Can be viewed and edited in any text editor
- Compact: Minimal overhead for basic tabular data
- Flat structure: No native support for hierarchical data (unlike JSON or XML)
Data Limitations
CSV has some limitations to be aware of:
- No data typing: All values are treated as text by default
- No standardized schema: Structure must be inferred or documented separately
- Special character handling: Commas within text require special handling (usually quotation marks)
- No nested structures: Cannot represent hierarchical data without flattening
CSV in FileMaker
FileMaker has excellent built-in support for working with CSV data:
Import Records
You can easily import CSV data using the Import Records script step:
You can also access this through the File menu:
- Choose File > Import Records > File...
- Select your CSV file
- Map fields in the import dialog
Export Records
Exporting to CSV is just as straightforward:
Or through the menu:
- Choose File > Export Records
- Select CSV as the file type
- Configure field mapping
Text Functions
For more complex CSV operations, FileMaker's text manipulation functions can be used:
- Use
Substitute()to handle special characters - Use
TextToList()(in newer versions) to parse CSV strings - Use
Middle(),Left(),Right()withPosition()in older versions
CSV's simplicity makes it an excellent choice for quick data exchanges between FileMaker and other systems when complex hierarchical data structures aren't required.