Legacy Documentation: This content is maintained for backward
compatibility and may not reflect the latest features or best practices. For
current documentation, please refer to our updated guides.
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!
Actions are defined in your Workbook Blueprint and backed by
Jobs in your listener.
submitAction
.
Adding behavior to the action
The primary Action button is located in the upper right corner of your Workbook.
job:ready
event, and call out to a waiting webhook to export our
data.
Import addl packages
You’ll need a few more packages to accomplish this task. Go ahead and import them.Call a webhook
To configure our listener to call to a webhook, let’s create a webhook. We recommend using Webhook.site. Simply navigate to their site and copyYour unique URL
.
Now, update the value of the const webhookReceiver
variable in your index.ts
or index.js
file with the webhook url you just copied.
Watch your Action
Check your listener is still running. If not, runnpx flatfile@latest develop
.
Now, in your Workbook click the “Submit” button in the top right corner.
Over on your Webhook.site browser tab look at the query log and observe that the
webhook received a call; this is the Action running.