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 497 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 500 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 894 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 895 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 900 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 927 days ago