Skip to main content

There was an unexpected error while executing your script

  • November 3, 2020
  • 2 replies
  • 29 views

Forum|alt.badge.img
  • New Participant
  • 3 replies

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

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • November 3, 2020

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?


Forum|alt.badge.img
  • Author
  • New Participant
  • 3 replies
  • November 4, 2020

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