Welcome to the Airtable community!
Have you set up recordId
as the input variable for the script?
Have you setup the trigger for the automation?
@kuovonne Thank you!
I set up the input variable and it worked like magic, thanks.
hi - i have this and i keep getting an error:
let table = base.getTable(“Vibe Stages”);
let inputConfig = input.config(recordId);
let recordId = inputConfign‘recordId’]
await table.deleteRecordAsync(recordId);
ReferenceError: Cannot access ‘recordId’ before initialization
at main on line 2
hi - i have this and i keep getting an error:
let table = base.getTable(“Vibe Stages”);
let inputConfig = input.config(recordId);
let recordId = inputConfign‘recordId’]
await table.deleteRecordAsync(recordId);
ReferenceError: Cannot access ‘recordId’ before initialization
at main on line 2
Welcome to the Airtable community!
You have copied the script incorrectly. Look at the second line of the script.
You want …
let table = base.getTable("Vibe Stages");
let inputConfig = input.config();
let recordId = inputConfig 'recordId']
await table.deleteRecordAsync(recordId);
Welcome to the Airtable community!
You have copied the script incorrectly. Look at the second line of the script.
You want …
let table = base.getTable("Vibe Stages");
let inputConfig = input.config();
let recordId = inputConfigi'recordId']
await table.deleteRecordAsync(recordId);
Thanks! when i do that i get this error

Thanks! when i do that i get this error

Did you create your input variable?
Did you create your input variable?
how do i do that? i thought the record id was the variable
You have to setup the input variable in the left section of the script editor. There is a link in that section to more documentation if you need more help.