Help

Re: How could I find out how many records there are in a table?

4814 9
cancel
Showing results for 
Search instead for 
Did you mean: 
ben_jones1
4 - Data Explorer
4 - Data Explorer

JAVASCRIPT / NODEJS

How could I find out how many records there are in a table?

recordsMax = base('Table 1').size() Something like that, but it actually works.

Thanks.

11 Replies 11

Hi @ben_jones1,

If you are looking for records in one table (not base) you will find the number if records in the bottom left corner. For the full Base you will find it in your account under workspace.

BR,
Mo

He’s asking how to get this data through the API. But, it depends on which API - from a script block @ben_jones1?

Yes. It is on a javascript file.

JavaScrirpt (files) can run on many systems and in many contexts using three different SDKs. You are running your JavaScript file in Script Block?

I am using Visual Studio Code.

Getting warmer.

And where (exactly) are you planning to run this code you are writing in VS Code?

In this file:

deletemehttps://gyazo.com/bd3157a4a5e7460582cb43c119a59ce5

Okay - so, you are trying to access Airtable data from a third-party system that supports scripting. Unless that system (gyazo.com) provides a way to import the Airtable JavaScript SDK (like you would when developing a NodeJS service), you are faced with the task of building the complete API integration using whatever flavor of JavaScript it supports.

As such, You must use the gyazo platform and whatever scripting features they allow to perform an HTTPS POST request to the Airtable API. To know the exact code to do this would require intimate knowledge of the gyazo platform. Once you are able to make a request into Airtable, you can iterate across the record set to count the number of records in a given table.

Since the gyazo platform supports a public REST API, a more appropriate approach may be to build your Airtable API code in a platform that you control and one in which Airtable’s SDK resources are available to make this easier.

I assume your goal is to pull images from Gyazo into Airtable or to pull images from Airtable for use in Gyazo. If this is correct, you probably need a NodeJS app or possibly a Google Cloud Platform app that can read from Gyazo and write to Airtable.

To be clear - all this is all simply speculation on my part because I don’t really know anything about your project or its objectives.

Gyazo is a photo program, not a scripting system.