Legacy Documentation: This documentation is maintained for backward
compatibility. For the latest documentation, please visit the current
documentation site.
How it works
You can achieve a fully automated data exchange between systems in just three steps: Automate ingressImplement a flexible data pipeline that seamlessly uploads files to Flatfile without manual intervention, streamlining the process of data intake. Flatfile processing
Within the Flatfile Platform, build a comprehensive configuration that enables automated extraction, mapping, validation, and transformation of your data. Automate egress
Finally, leverage Flatfile’s Event driven system to automatically export the processed and transformed data from Flatfile to the designated destination system, eliminating the need for manual exporting and ensuring a continuous flow of data to the intended location.
Automate ingress
Data comes from many sources, and Flatfile can handle them all. Set up automatic feeds via cron job, cloud function, or any other method that works for your business. All ingress processes will leverage either our API or our SDKs. First, configure an ingress destination. Our files will be contained in a Space. You can think of a as a micro-application, each has it’s own database and configurations.Next, we’ll upload our file to Flatfile.
Flatfile Processing
Extract incoming data
Incoming CSV files are automatically extracted to a . However, if you’re sending a different file type, you’ll need to configure a listener to handle extraction.See our Extractor Plugins
for plug and play options or build your own.
Automate mapping
Once our files are extracted, we’ll need to automate the mapping of our data according to our schema. Our Automap Plugin will automatically map the data, matching based on configureable options.Because the Automap Plugin handles all the mapping, the user does not need to be redirected to Mapping after dragging a file into a Sheet.To prevent that redirect, set
settings: {noMappingRedirect: true}
in your
Workbook blueprint.Validate & Transform
Similarly, validation and transformation operations can run immediately onrecords:*
events with RecordHooks. See our
Data Handling Guide for more information.
Automate egress
Now that we’ve leveraged the power of the Flatfile platform to extract, map, validate, and transform our data, we can automate the egress of our data to our destination system. We’ll have our listener filter and run our egress logic oncommit:completed
.
This is an event specifically designed to signal the end of all processing
tasks.
To enable the
commit:completed
event, add a settings parameter in your
Workbook that includes trackChanges: true
. This has the effect of disabling
actions on both Sheets and Workbooks until any pending commits have been
completed. See Blueprint sheet
settings for more information.Egress Jobs may need to leverage Flatfile Secrets as credentials for outgoing
connections. See our Secrets Guide for more
information.