Airtable
Airtable tasks
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Tasks are executed after the job is triggered and are the main building blocks of a job. You can string together as many tasks as you want.
All tasks
base.table.getRecords
Gets multiple records for a table. You can filter. Official Airtable Docs.
example.ts
base.table.getRecord
Gets a single record (using the id) for a table. Official Airtable Docs.
example.ts
base.table.createRecords
Create one or more records in a table. Official Airtable Docs.
example.ts
base.table.updateRecords
Update one or more records in a table. Official Airtable Docs.
example.ts
base.table.deleteRecords
Delete one or more records in a table (using ids). Official Airtable Docs.
example.ts
Example Usage
In this demo we will use the Airtable to get records from a table, create a new record, update it and then delete it.