Help

Creating Multiple Records with One Request

Topic Labels: API
1879 4
cancel
Showing results for 
Search instead for 
Did you mean: 
Patrick_Luy
5 - Automation Enthusiast
5 - Automation Enthusiast

Hey all. I’m tasked with doing some automation of a few processes. As part of this task, I need to create several records in an AirTable base.

I’m using AirtablJS, with typescript typings from DefinitelyTyped. I was wondering how I can create multiple records with one request.

I saw on the API docs that I can just pass an array of field data to the base(“tableName”).create() function to do this. But, when I try it on my codebase, Node complains that create() has no such overload that takes an array of records.

Any advice on doing this?

4 Replies 4

Wild guess - the SDK you are using (is it this one?) doesn’t support this relatively new API method.

If it is this SDK, notice not a single commit to the project in a half year and I’m pretty sure the API has made leaps and bounds since then.

image

Patrick_Luy
5 - Automation Enthusiast
5 - Automation Enthusiast

So, I’d there a newer SDK? Or, am I pretty much stuck with this?

I guess for now I can just iterate over them and send requests like every 200 ms. Kinda Jacky. But it works for now.

openside
10 - Mercury
10 - Mercury

Hi Patrick, this is the correct api. And it’s been updated recently.

I think maybe the typescript types hasn’t been, though. So maybe not use that. But the js library definitely supports bulk calls