import { Airtable } 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: object,
) {
const airtable = new Airtable({ ...at_con, ...at_table });
const createOne = await airtable.create(new_record);
return { message: "Created record in table" };
}
Submitted by admin 502 days ago
import { Airtable } 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: object) {
const airtable = new Airtable({...at_con, ...at_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by admin 505 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable({...at_con, ...at_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by adam186 633 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable({...at_con, ...at_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by adam186 668 days ago
import * as wmill from "https://deno.land/x/windmill@v1.27.2/mod.ts";
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable({...at_con, ...at_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 872 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable({...at_con, ...at_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 890 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: wmill.Resource<"airtable">, at_base_table: wmill.Resource<"airtable-baseId-tableName">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable({...at_con, ...at_base_table})
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 900 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: wmill.Resource<"airtable_resource">, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable(at_con)
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 900 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: wmill.Resource < "airtable_resource" >, new_record: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable(at_con)
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 905 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example:
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable(at_con: wmill.Resource<"airtable_resource">)
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 905 days ago
import * as wmill from 'https://deno.land/x/windmill@v1.17.0/index.ts'
export async function main(at_con: object) {
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {object} new_record: object
example -
{
Name: "Harry",
Age: 44,
}
*/
const airtable = new Airtable(at_con: wmill.Resource<"airtable_resource">)
const createOne = await airtable.create(new_record);
return { message: "Created record in table"}
}
Submitted by rossmccrann 905 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
export async function main(at_con: object) {
const airtable = new Airtable(at_con);
const createSingle = await airtable.create({
Name: "Harry",
Age: 44,
});
return { message: "Created record in table"}
}
Submitted by rossmccrann 932 days ago