Scripting
Example

Record picker
Scripting Extension only

This script prompts the user to pick a record from a specific table in your base. You can use it as a starting point for a script that performs an action using a specific record.

You can use this script with the "Run script" action of a button field. When the script is run from a button, the script will skip showing the record picker and will use the button's record instead.

Example
// Change this name to use a different table
let table = base.getTable("Tasks");
// Prompt the user to pick a record
// If this script is run from a button field, this will use the button's record instead.
let record = await input.recordAsync('Select a record to use', table);
if (record) {
// Customize this section to handle the selected record
// You can use record.getCellValue("Field name") to access
// cell values from the record
console.log(`You selected this record: ${record.name}`);
} else {
console.log('No record was selected');
}