The Airtable Community will undergo scheduled maintenance on September 17 from 10:00 PM PST to 11:15 PM PST. During this period, you may experience temporary disruptions. We apologize for any inconvenience and appreciate your understanding.
Is there a method on base(‘tableName’) that can get the length (number of records) of the table?
Here is part of my code:
var Airtable = require('airtable');
var base = new Airtable({ apiKey: 'myApiKey' }).base(
'myBaseId'
);
base('tableName').
...
I’m using a custom script to get records form the base I am in. To do this, I am using using:
base.getTable('Incoming');
Now, I’d like to create new records using data from the records in base.getTable('Incoming') in a table that lives in a differen...
I’m trying to use the scripting app to:
Get all of the records from one table (this Table is called “Incoming”)Copy all the records from the Incoming table to a different table called “Copied”
Here is my code:
let tableIncoming = base.getTable('Incom...
I have a table that gets a lot of log data – about 8,000 records per month. Since a table can only hold 50,000 records and a base can only hold 100,000 records, I’d like to move the table to another base (on a given date or after a specified amount o...
kuovonne:
There are several other techniques to get the number of records, using different combinations of scripting, automations, and base design.
That’s helpful! I’m using the API in a react app – how would recommend the best way to get the ...
kuovonne:
You would not create a react app. That is for creating a custom app, not using the REST API. The documentation for the REST API is quite good and has all the information that an experienced developer needs.
But how can I use the API ...
I think I can craft them on my own, but I’m still unsure of how to reference the base in the scripting app? Would I have to create a custom React app to do this?
Also, I just saw the “sync table” feature:
Is there a way to do this programmatically?
...
I guess I’m wondering how to access the below (from API docs) in the scripting:
var Airtable = require('airtable');
var base = new Airtable({apiKey: 'YOUR_API_KEY'}).base('appLeAWrWWE5ctwux');
How can I use the API in a script if I don’t have access...