MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / updateRecords

Method updateRecords

integrations/airtable/src/base.ts:98–119  ·  view source on GitHub ↗
(key: IntegrationTaskKey, records: { id: string; fields: Partial<TFields> }[])

Source from the content-addressed store, hash-verified

96 }
97
98 updateRecords(key: IntegrationTaskKey, records: { id: string; fields: Partial<TFields> }[]) {
99 return this.runTask(
100 key,
101 async (client) => {
102 const result = await client
103 .base(this.baseId)
104 // official types are wrong - we need to use our extended AirtableFieldSet here
105 // @ts-ignore
106 .table<TFields>(this.tableName)
107 .update(records);
108 return result.map((record) => toSerializableRecord<TFields>(record));
109 },
110 {
111 name: "Update Records",
112 params: records,
113 properties: [
114 ...tableParams({ baseId: this.baseId, tableName: this.tableName }),
115 { label: "Updated records", text: records.length.toString() },
116 ],
117 }
118 );
119 }
120
121 deleteRecords(key: IntegrationTaskKey, recordIds: string[]) {
122 return this.runTask(

Callers 1

airtable.tsFile · 0.80

Calls 6

toSerializableRecordFunction · 0.85
tableParamsFunction · 0.85
toStringMethod · 0.80
runTaskMethod · 0.45
updateMethod · 0.45
baseMethod · 0.45

Tested by

no test coverage detected