Egress out
Learn how to get data out of Flatfile.
The DevXP engineering team hosts office hours every Thursday at 11 a.m. Pacific Time where we answer your questions live and help you get up and running with Flatfile. Join us!
After your customers have imported their data, the process of transmitting that data to an external destination or network is referred to as “egress out.”
Egress via Workbook-level Action
This code listens for a job event of type workbook:submitAction
and when triggered, it retrieves the Sheets and records associated with the workbook.
It then prepares the data and sends a POST
request to a specified webhook URL using Axios. The payload includes information about the Sheets, records, and other relevant data.
If the request is successful, it marks the job as complete. If there is an error, it marks the job as failed.
Testing with webhook.site
- To create the receiver, navigate to webhook.site
- Copy the value of the path after webhook.site for
Your unique URL
. - Next, add the following to your default export function.
Example Project
Find the egress example in the Flatfile GitHub repository.