Apologies in advance, this is probably a dumb question but I’m relatively new to airtable and I’m trying to retrieve individual records using the API through node.js and I can’t figure out how to store the JSON output as a variable I can parse through.
From my API documentation, I am being told I can retrieve an individual record using:
base('base-name').find('record-name', function(err, record) {
if (err) { console.error(err); return; }
console.log(record);
});
This works perfectly well to print the record to the console. But how do I assign the output to a variable which I can parse through? I’m sorry if this is a dumb question. Really appreciate any help!