Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Selecting multiple records by ID, is this syntax a bad idea?

Topic Labels: API
756 1
Showing results for 
Search instead for 
Did you mean: 

Say I need to get 5, 10, or 50 records, and I have their record_ids. Is this style of syntax a bad idea?

{ filterByFormula: "OR(RECORD_ID() = 'reca9IDlX0gvu32ml', RECORD_ID() = 'recgh3XeMcdmX8uPj', RECORD_ID() = 'reczBZBWZG06DOsCO', RECORD_ID() = 'recXvnMcZKmxyBtUi')" }

I’m generating the innards of the OR with code.

Thanks in advance.

1 Reply 1

Did you get an answer about this? I have a similar situation and trying to figure out the best way to return multiple records by passing the Ids.