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,
recordId: string,
) {
const airtable = new Airtable({ ...at_con, ...at_table });
const deleteSingleRecord = await airtable.delete(recordId);
return { message: "Deleted single record 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, recordId: string) {
const airtable = new Airtable({...at_con, ...at_table});
const deleteSingleRecord = await airtable.delete(recordId);
return { message: "Deleted single record 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";
export async function main(at_con: wmill.Resource<"airtable">, at_table: wmill.Resource<"airtable_table">, recordId: string) {
const airtable = new Airtable({...at_con, ...at_table});
const deleteSingleRecord = await airtable.delete(recordId);
return { message: "Deleted single record 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";
export async function main(at_con: wmill.Resource<"airtable">, at_base_table: wmill.Resource<"airtable-baseId-tableName">, recordId: string) {
const airtable = new Airtable({...at_con, ...at_base_table});
const deleteSingleRecord = await airtable.delete(recordId);
return { message: "Deleted single record 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";
export async function main(at_con: object, recordId: string) {
const airtable = new Airtable(at_con);
const deleteSingleRecord = await airtable.delete(recordId);
return { message: "Deleted single record in table" };
}
Submitted by rossmccrann 890 days ago