Hello Airtable Team.
I am trying to run the following script, but it show me this error:
ERROR
at main on line 7
Script:
// Define the table and field names
const tagsPods = base.getTable('TAGS TSM PODS');
const trackerSsot = base.getTable('Team Tracker SSOT');
const fieldToFill = tagsPods.getField('FULL NAME')
// Listen for new records created in the trackerSsot
trackerSsot.watch('recordCreated', async (event) => {
const newRecord = event.record;
// Get the value from the new record in the trackerSsot
const valueToFill = newRecord.getCellValue('FULL NAME')
// Create a new record in tagsPods and fill in the desired field
await tagsPods.createRecordAsync({
'FULL NAME':valueToFill
});
});
I appreaciate if you can help me to solve it. thank you in advance.