Skip to main content

Hello! I try to get all records but can’t parse them . Could you help me?


var Airtable = require(‘airtable’);


var base = new Airtable({apiKey: 'key******************).base(‘app******************’);


var accumulator = ;


base(‘Table1’).select({


maxRecords: 15,


view: “MainTable”


}).eachPage(function page(records, fetchNextPage) {



records.forEach(function(record) {


accumulator.push(record._rawJason);


});


console.log ( accumulator);


fetchNextPage();


}, function done(err) {


if (err) { console.error(err);


return }


});

Be the first to reply!

Reply