I’m exploring the Airtable API, specifically the ‘list records’ feature. In the sample JavaScript code, I noticed that it works with ‘text’ field types only. Here’s the code I’ve been testing:
processRecords(function retrieve(records, getNextPage) {
records.forEach(function(item) {
console.log('Fetched', item.get('Name'));
});
});
Next, I tried to include the ‘profile image’ field, but since this field is an array containing multiple URLs for different image sizes, I adjusted my code accordingly:
processRecords(function retrieve(records, getNextPage) {
records.forEach(function(item) {
console.log('Fetched', item.get('Profile Image'));
});
});
When testing in an online playground, the output was:
Fetched (1) [{...}]
Fetched (1) [{...}]
Fetched (1) [{...}]
Is there a method to access specific items within an array field in this context?