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!
Egress via Workbook-level Action
This code listens for a job event of typeworkbook: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.