import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Fields } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
export async function main(
at_con: Airtable,
recordId: string,
newRecord: object,
) {
const airtable = new Airtable(at_con);
const updateSingleRecord = await airtable.update<Fields>(recordId, newRecord);
return { message: "Updated single record in table" };
}
Submitted by admin 460 days ago
import { Airtable } from "https://deno.land/x/airtable/mod.ts";
import { Fields } from "https://deno.land/x/airtable/mod.ts";
type Airtable = {
apiKey: string;
};
export async function main(at_con: Airtable, recordId: string, newRecord: object) {
const airtable = new Airtable(at_con);
const updateSingleRecord = await airtable.update<Fields>(recordId, newRecord);
return { message: "Updated 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";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {int} recordId id of the record to be updated in table
@param: {object} newRecord: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
*/
export async function main(at_con: wmill.Resource<"airtable">, recordId: string, newRecord: object) {
const airtable = new Airtable(at_con);
const updateSingleRecord = await airtable.update<Fields>(recordId, newRecord);
return { message: "Updated single record in table" };
}
Submitted by rossmccrann 857 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: {int} recordId id of the record to be updated in table
@param: {object} newRecord: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
*/
export async function main(at_con: wmill.Resource <"airtable">, recordId: string, newRecord: object) {
const airtable = new Airtable(at_con);
const updateSingleRecord = await airtable.update<Fields>(recordId, newRecord);
return { message: "Updated 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";
/*
@param: {wmill.Resource} at_con - https://hub.windmill.dev/resource_types/12/airtable-apiKey-baseId-tableName
@param: {int} recordId id of the record to be updated in table
@param: {object} newRecord: data to be sent to airtable
example:
{
Name: "Harry",
Age: 44,
}
*/
export async function main(at_con: wmill.Resource < "airtable_resource" >, recordId: string, newRecord: object) {
const airtable = new Airtable(at_con);
const updateSingleRecord = await airtable.update<Fields>(recordId, newRecord);
return { message: "Updated single record 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, recordId: string) {
const airtable = new Airtable(at_con);
type Fields = {
Name: string;
Age: number;
};
const updateSingleRecord = await airtable.update<Fields>(recordId, {
Name: "Johnny",
Age: 44,
});
return { message: "Updated single record in table" };
}
Submitted by rossmccrann 890 days ago