import { Airtable } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
atCon: Airtable,
atTable: AirtableTable,
recordList: object[],
) {
const airtable = new Airtable({ ...atCon, ...atTable });
const createMultiple = await airtable.create(recordList);
return createMultiple;
}
Submitted by hugo697 494 days ago