Airtable steps: add, find and update a record
Add a record to an Airtable table, find a record by a field, and update a record, with a personal access token. Scopes, field types, outputs and limits.
Updated
Four steps work with an Airtable table: Add record creates a record, Find record looks one up by a field, Find records lists every record that matches, and Update record changes a record's fields. To start a workflow when a record is added, see the Airtable trigger.
How to set it up
- In Airtable, create a personal access token at airtable.com/create/tokens with the scopes
data.records:read,data.records:writeandschema.bases:read, and add the bases the workflow should use. - In Foliot, add the step, add an Airtable connection and paste the token. It's checked with Airtable and stored encrypted. If you regenerate the token later, paste the new one with Replace token on the Connections page: the steps using it keep working, and a connection Airtable stops accepting shows Needs reconnecting and emails you once.
- Paste the table's link (or the base ID) and click Load table. Then fill in the fields below, inserting data with + Data, and Test this step.
Add record to Airtable
- One value per field. Leave a field empty to skip it.
- Field types it fills: single line text, long text, email, URL, phone, number, currency, percent (“50%” or 0.5), single select, multiple select (names separated by commas; Airtable adds a missing option when the field allows it), date, date and time, checkbox (Yes or No). A time without an offset is read in the workflow's timezone.
- Not supported yet: attachments, linked records, users and a few others; the step lists them. Formulas, rollups, lookups and created or modified times are Airtable's own.
- Output: the record's fields by name,
idandurl.
Find record in Airtable
- Finds the oldest record (by created time) whose field equals a value. Any writable field type except multiple select.
- The field is remembered by its ID, so renaming it in Airtable is fine. A field that was deleted or changed to another type fails with “Load the table again”.
- Output: the record's fields by name,
id,urlandfound: true, orfound: false. Not finding a record isn't a failure. - Find records has the same settings but gives every matching record, oldest first, as a list,
records(up to 100, from the first 200 Airtable returns), pluscount; leave the value empty for every record. Loop over it with For each. No match gives an empty list, not a failure.
Update record in Airtable
- Needs the record's ID (
rec…) or link, usually theidfrom Find record, and at least one field. Empty fields are kept as they are.
Limits
- No Airtable triggers, and no deleting records.
- Creating or updating a record is retried only when the request certainly didn't reach Airtable. After a timeout or an Airtable server error the run fails and asks you to check the table, then re-run, so you never get a duplicate record.
- The records live in your Airtable base, not in Foliot.