There was an unexpected error while executing your script

Hello,

I try to test scripting but i have a generic error that really doesnt help me to find the solution :slight_smile:

“There was an unexpected error while executing your script.”

let table = base.getTable("Max");

let queryResult = await table.selectRecordsAsync();

let record = queryResult.records[0];

console.log(record.getCellValueAsString("Rue"));

My goal is to have a trigger where i get the new row & do several things

Welcome to the Airtable community!

Can you post a screen shot of your script?

Are you running the script in Scripting App or as an automation?
Do you have a table named “Max”?
Does that table have a field named “Rue”?
Are there records in the table?

Hello kuovonne,

Thank you for your response. I finally use the variable in “input”, so far it works.

I have an other question, i have to plug quickbooks & airtable. quickbooks use Oauth2 so i need to let the user log himself and get back to airtable.

Is it possible using a trigger ?

Thanks