1
Create Multiple Records
One script reply has been approved by the moderators Verified
Created by nicolassirang 929 days ago Viewed 10640 times
0
Submitted by hugo697 Deno
Verified 494 days ago
1
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
2

3
type Airtable = {
4
  apiKey: string;
5
};
6

7
type AirtableTable = {
8
  baseId: string;
9
  tableName: string;
10
};
11
export async function main(
12
  atCon: Airtable,
13
  atTable: AirtableTable,
14
  recordList: object[],
15
) {
16
  const airtable = new Airtable({ ...atCon, ...atTable });
17

18
  const createMultiple = await airtable.create(recordList);
19

20
  return createMultiple;
21
}
Other submissions