Links¶
Link columns connect rows between tables. Most link operations require the link_id, which you can retrieve with getColumnLinkId.
Get Link ID¶
getColumnLinkId
Get the link ID of a link column. You need this ID for all other link operations.
Output Link ID string (e.g. 'aHL2')
Example
Get Linked Records¶
getLinkedRecords
Get the linked records of one or more rows. Supports pagination per row.
Output Object with row IDs as keys and arrays of linked record info as values.
Example
const linked = await base.getLinkedRecords('0000', '89o4', [
{'row_id': 'FzNqJxVUT8KrRjewBkPp8Q', 'limit': 10, 'offset': 0},
{'row_id': 'Jmnrkn6TQdyRg1KmOM4zZg', 'limit': 20}
]);
// Result:
// {
// 'FzNqJxVUT8KrRjewBkPp8Q': [
// {'row_id': 'LocPgVvsRm6bmnzjFDP9bA', 'display_value': '1'},
// ...
// ],
// 'Jmnrkn6TQdyRg1KmOM4zZg': [...]
// }
Add Link¶
addLink
Create a link between two rows in different tables.
Example
Update Link(s)¶
updateLink
Replace all linked records of a row with a new set.
Example
batchUpdateLinks
Update links for multiple rows at once.
Example