Help

Re: Loading a field from a view

599 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Scott_Mullin
6 - Interface Innovator
6 - Interface Innovator

Hello,

I’m trying to learn basic scripting. I’m following some examples to get started and build a useful function, however I’m hung up pretty early on. I’m trying to pull all the entries for one specific field in a view. However, when I do this, my efforts keep ending up giving the “id” and “name” column, but not whatever I specified as the field. Here’s my code:

let table = base.getTable(‘Prints’);
let view = table.getView(‘PF - All Prints’);
let result = await view.selectRecordsAsync({
fields: [“Keywords”]
})
output.inspect(result);

Any support would be appreciated! Thank you.

1 Reply 1
MrLuke
6 - Interface Innovator
6 - Interface Innovator

I know this is an old thread, but I'm having the same issue now nearly 2 years later.