I am attempting to create a simple script which will count the number of entries in a linked lookup field. My plan was to invoke .selectRecordAsync() on the table of interest to pull the records and count the number of entries for a given record in that field.
I’ve run into an issue early on with this script: the selectRecordAsync call appears to only be returning the name field and Id for the records, but no other data. My code is below.
let vendorTable=base.getTable("Vendors");
let quoteField=base.getTable("Vendors").getField("Quoted Parts")
let records= await vendorTable.selectRecordsAsync()
console.log(quoteField)
console.log(records)
let exampleValue=recordsd0].getCellValue(quoteField)
console.log(exampleValue)
I’m getting the following responses in the console.
My table is structured as follows:
The only issue I can think of off hand is that all of the fields (aside from name) are linked or lookup values.
What am I missing here?