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.
Example Project
Find the egress example in the Flatfile GitHub repository.typescript
Clone the egress example in Typescript
javascript
Clone the egress example in Javascript