Skip to main content
Solved

Scripting help

  • July 22, 2024
  • 1 reply
  • 26 views

Forum|alt.badge.img+6

Probably a simple solution, but I can not figure it out. 

I am using the following script to try to get a list of all of the records in a specific table.

let table = base.getTable("Codes");
let query = await table.selectRecordsAsync();
console.log (query)
 
When I run this, I get the following error
 
O: No field with ID fldwfud1d0wv3rdVD in table 'Codes'
    at main on line 2


When I run this same coding using one of the other tables, it works as expected. Any ideas on how to fix this? It is getting in the way of the larger script I am trying to write.

Best answer by TheTimeSavingCo

Hm, that seems fine and you shouldn't hit that error since you're not declaring what fields you want to grab.  If I were you I'd try deleting the scripting block / scripting automation action and retry it to see if that helped

1 reply

TheTimeSavingCo
Forum|alt.badge.img+31

Hm, that seems fine and you shouldn't hit that error since you're not declaring what fields you want to grab.  If I were you I'd try deleting the scripting block / scripting automation action and retry it to see if that helped