Edits history of script submission #1022 for ' Update record (airtable)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { Airtable } from "https://deno.land/x/airtable/mod.ts";
    
    type Airtable = {
      apiKey: string;
    };
    type AirtableTable = {
      baseId: string;
      tableName: string;
    };
    export async function main(
      atCon: Airtable,
      atTable: AirtableTable,
      recordId: string,
      newRecord: object,
    ) {
      const airtable = new Airtable({...atCon, ...atTable});
    
      const updateSingleRecord = await airtable.update(recordId, newRecord);
    
      return updateSingleRecord;
    }
    

    Submitted by hugo697 376 days ago

  • deno
    import { Airtable } from "https://deno.land/x/airtable/mod.ts";
    
    type Airtable = {
      apiKey: string;
    };
    type AirtableTable = {
      baseId: string;
      tableName: string;
    };
    export async function main(
      atCon: Airtable,
      atTable: AirtableTable,
      recordId: string,
      newRecord: object,
    ) {
      const airtable = new Airtable({...atCon, ...atTable});
    
      const updateSingleRecord = await airtable.update(recordId, newRecord);
    
      return updateSingleRecord;
    }
    

    Submitted by hugo697 1006 days ago

  • deno
    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,
      recordId: string,
      newRecord: object,
    ) {
      const airtable = new Airtable({...at_con, ...at_table});
    
      const updateSingleRecord = await airtable.update(recordId, newRecord);
    
      return updateSingleRecord;
    }
    

    Submitted by hugo697 1006 days ago

  • deno
    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,
      recordId: string,
      newRecord: object,
    ) {
      const airtable = new Airtable({...at_con, ...at_table});
    
      const updateSingleRecord = await airtable.update(recordId, newRecord);
    
      return console.log(updateSingleRecord);
    }
    

    Submitted by hugo697 1006 days ago