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 424 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 427 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 812 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 822 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 853 days ago