File-Based Transport
Using files as a transport mechanism for data integration with FileMaker
File-based transport mechanisms remain one of the most common and reliable methods for exchanging data between FileMaker and other systems.
File-Based Integration Overview
File-based integration involves systems writing data to files that other systems read. This approach:
- Requires minimal setup
- Works across virtually all platforms
- Doesn't require systems to be simultaneously online
- Provides built-in audit trails (the files themselves)
Common File Transport Protocols
FTP (File Transfer Protocol)
The traditional protocol for transferring files between systems:
- Simplicity: Easy to implement and understand
- Widespread support: Available on virtually all platforms
- FileMaker access: Available through Insert From URL with cURL options
- Limitations: Lacks encryption in its basic form
SFTP (SSH File Transfer Protocol)
Secure version of FTP that encrypts both authentication and data:
- Security: Provides encryption and stronger authentication
- Modern standard: Preferred over FTP for security reasons
- FileMaker access: Available through Insert From URL with cURL options
Shared Network Drives
Direct access to files on network-accessible storage:
- Simplicity: Works like local file access
- Low latency: Fast for same-network systems
- FileMaker access: Native through Import/Export Records
- Limitations: Usually restricted to internal networks
File Formats for Data Exchange
Common formats used in file-based transports:
- CSV: Simple tabular data
- XML: Structured data with schema support
- JSON: Modern, hierarchical data format
- Excel/XLSX: Office-compatible spreadsheets
- PDF: For document exchange
FileMaker Capabilities
FileMaker provides robust support for file-based transport:
Import Records
The Import Records script step can import from various file formats:
Export Records
Export Records can create files in multiple formats:
External File References
FileMaker can reference external data sources:
- Excel and CSV files
- XML files
- Other FileMaker files
- ODBC data sources
Send Mail
FileMaker can email files as attachments:
Implementing File Drops
A common pattern for file-based integration is "file drops" where:
- System A writes files to a designated folder
- System B monitors that folder for new files
- System B processes files when they appear
- Files are moved to an archive folder after processing
FileMaker Implementation
Best Practices
- Use standardized naming conventions: Include timestamps, source system identifiers
- Implement error handling: Deal with malformed files gracefully
- Set up monitoring: Track file arrivals, processing status
- Consider scheduling: Coordinate timing between systems
- Maintain archives: Keep processed files for audit purposes
- Secure file locations: Restrict access to file drop locations