Help

Can't get Jason

590 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Violetta_Slesar
4 - Data Explorer
4 - Data Explorer

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 }
});

0 Replies 0