Help

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

How to get TotalRows in a table

Topic Labels: API
3411 3
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi

Doing a test to implement AirTable with Qlik Sense, and I’m struggling with the setup for the pagination in the Qlik REST connector. How can I do a api-call to just get “total rows” /or “number of records” in a table? Or is the only way to loop until there is no value in the offset field?

Thanks for any help

Robert Svebeck

3 Replies 3

I typically loop until there is no offset provided, however I make the API result as light as possible by providing the fields parameter and specifying either nothing or a single field.

Oh how I want the metadata API!

Ok, thanks Chester. I will continue to loop and loop and loop until the meta data api is here :slightly_smiling_face:

export const countRecords = async (table: Airtable.Table<any>) => {
  const records = await table.select().all()
  return records.length
}