import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(
at_con: Airtable,
at_table: AirtableTable,
new_record_list: object,
fields_list: object,
) {
const airtable = new Airtable({ ...at_con, ...at_table });
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(new_record_list);
return { message: "Created multiple records in table" };
}
Submitted by admin 460 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
type AirtableTable = {
baseId: string;
tableName: string;
};
export async function main(at_con: Airtable, at_table: AirtableTable, new_record_list: object, fields_list: object) {
const airtable = new Airtable({...at_con, ...at_table});
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(
new_record_list
);
return { message: "Created multiple records in table" };
}
Submitted by admin 463 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
@param: {object} fields_list - type of data to be sent to airtable
example:
{
Name: string;
Age: number;
}
*/
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, new_record_list: object, fields_list: object) {
const airtable = new Airtable({...at_con, ...at_table});
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(
new_record_list
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 848 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
@param: {object} fields_list - type of data to be sent to airtable
example:
{
Name: string;
Age: number;
}
*/
export async function main(at_con: wmill.Resource<"airtable">, at_base_table: wmill.Resource<"airtable-baseId-tableName">, new_record_list: object, fields_list: object) {
const airtable = new Airtable({...at_con, ...at_base_table});
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(
new_record_list
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 858 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
@param: {object} fields_list - type of data to be sent to airtable
example:
{
Name: string;
Age: number;
}
*/
export async function main(at_con: wmill.Resource < "airtable" >, at_base_table: wmill.Resource < "airtable-baseId-tableName" >, new_record_list: object, fields_list: object) {
const airtable = new Airtable({...at_con, ...at_base_table});
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(
new_record_list
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 858 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
@param: {object} fields_list - type of data to be sent to airtable
example:
{
Name: string;
Age: number;
}
*/
export async function main(at_con: wmill.Resource < "airtable_resource" >, new_record_list: object, fields_list: object) {
const airtable = new Airtable(at_con);
type Fields = fields_list;
const createMultiple = await airtable.create<Fields>(
new_record_list
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 863 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: object, new_record_list: object) {
const airtable = new Airtable(at_con);
type Fields = {
Name: string;
Age: number;
Active?: Field.Checkbox;
};
const createMultiple = await airtable.create<Fields>(
new_record_list,
{ typecast: true },
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 889 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Field } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: object) {
const airtable = new Airtable(at_con);
type Fields = {
Name: string;
Age: number;
Active?: Field.Checkbox;
};
const createMultiple = await airtable.create<Fields>(
[
{ Name: "Harry", Age: 44 },
{ Name: "Ray", Age: 28 },
{ Name: "Ken", Age: 63 },
],
{ typecast: true },
);
return { message: "Created multiple records in table" };
}
Submitted by rossmccrann 890 days ago