Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

Loading a field from a view

Topic Labels: Scripting extentions
117 0
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

0 Replies 0