Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

There was an unexpected error while executing your script

Topic Labels: Scripting extentions
2159 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Max
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello,

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

“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

2 Replies 2

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?

Max
5 - Automation Enthusiast
5 - Automation Enthusiast

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