@@ -17,14 +17,14 @@ Table objects are typically accessed through the `base` object and provide the p
1717
1818## Properties
1919
20- | Property | Type | Description |
21- | -------- | ---- | ----------- |
22- | ` id ` | ` string ` | The unique identifier of the table |
23- | ` name ` | ` string ` | The name of the table |
24- | ` description ` | ` string \| null ` | The description of the table (if any) |
25- | ` fields ` | ` Field[] ` | Array of user-defined fields in the table (excludes system fields) |
26- | ` views ` | ` View[] ` | Array of all views defined for the table |
27- | ` base ` | ` Base ` | Reference to the parent base that this table belongs to |
20+ | Property | Type | Description |
21+ | --------------- | ------------------ | -------------------------------------------------------------------- |
22+ | ` id ` | ` string ` | The unique identifier of the table |
23+ | ` name ` | ` string ` | The name of the table |
24+ | ` description ` | ` string \| null ` | The description of the table (if any) |
25+ | ` fields ` | ` Field[] ` | Array of user-defined fields in the table (excludes system fields) |
26+ | ` views ` | ` View[] ` | Array of all views defined for the table |
27+ | ` base ` | ` Base ` | Reference to the parent base that this table belongs to |
2828
2929## Methods
3030
@@ -47,7 +47,7 @@ Retrieves a field from the table by its ID or name. This method searches both us
4747const titleField = projectsTable .getField (' Title' );
4848
4949// Get a field by ID
50- const statusField = projectsTable .getField (' fld12345 ' );
50+ const statusField = projectsTable .getField (' c12345 ' );
5151
5252// Check if a field exists
5353if (titleField) {
@@ -142,7 +142,7 @@ Retrieves a single record from the table by its ID.
142142** Example:**
143143``` javascript
144144// Get a specific record by ID
145- const recordId = ' rec12345 ' ;
145+ const recordId = ' 123 ' ;
146146const record = await contactsTable .selectRecordAsync (recordId, {
147147 fields: [' Name' , ' Email' , ' Phone' ]
148148});
@@ -179,8 +179,8 @@ output.text(`New record created with ID: ${newRecordId}`);
179179
180180// Create a record with field IDs
181181const newRecordId2 = await contactsTable .createRecordAsync ({
182- ' fld123 ' : ' Jane Smith' , // Name field
183- ' fld456 ' : ' jane@example.com' // Email field
182+ ' c123456 ' : ' Jane Smith' , // Name field
183+ ' c456789 ' : ' jane@example.com' // Email field
184184});
185185```
186186
@@ -230,13 +230,13 @@ Updates a record with the specified field values.
230230** Example:**
231231``` javascript
232232// Update a record by ID
233- await contactsTable .updateRecordAsync (' rec12345 ' , {
233+ await contactsTable .updateRecordAsync (' 123 ' , {
234234 ' Status' : ' Inactive' ,
235235 ' Last Contact Date' : new Date ().toISOString ()
236236});
237237
238238// Update a record using a Record object
239- const record = await contactsTable .selectRecordAsync (' rec12345 ' );
239+ const record = await contactsTable .selectRecordAsync (' 123 ' );
240240if (record) {
241241 await contactsTable .updateRecordAsync (record, {
242242 ' Notes' : ' Customer requested follow-up next quarter.'
@@ -259,7 +259,7 @@ Updates multiple records with the specified field values.
259259// Update multiple records at once
260260await contactsTable .updateRecordsAsync ([
261261 {
262- id: ' rec12345 ' ,
262+ id: ' 123 ' ,
263263 fields: {
264264 ' Status' : ' Active' ,
265265 ' Last Contact Date' : new Date ().toISOString ()
@@ -289,11 +289,11 @@ Deletes a record from the table.
289289** Example:**
290290``` javascript
291291// Delete a record by ID
292- await tasksTable .deleteRecordAsync (' rec12345 ' );
292+ await tasksTable .deleteRecordAsync (' 123 ' );
293293output .text (' Record deleted successfully.' );
294294
295295// Delete a record using a Record object
296- const record = await tasksTable .selectRecordAsync (' rec67890 ' );
296+ const record = await tasksTable .selectRecordAsync (' 678 ' );
297297if (record) {
298298 await tasksTable .deleteRecordAsync (record);
299299 output .text (` Record "${ record .name } " deleted successfully.` );
@@ -312,7 +312,7 @@ Deletes multiple records from the table.
312312** Example:**
313313``` javascript
314314// Delete multiple records by ID
315- await tasksTable .deleteRecordsAsync ([' rec12345 ' , ' rec67890 ' , ' rec24680 ' ]);
315+ await tasksTable .deleteRecordsAsync ([' 123 ' , ' 678 ' , ' 246 ' ]);
316316output .text (' Records deleted successfully.' );
317317
318318// Delete records using a query result
0 commit comments