Help

How to get record field by id in find method of airtable.js API ?

3110 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Laurent_Carbonn
4 - Data Explorer
4 - Data Explorer

I'm looking for a way to get record fields by id not by name.

It's possible while using select method using returnFieldsByFieldId parameter , but don't find how with find, update and create methods.

The web API supposes this is possible, but I don't find the way to do it thru javascript API

Any dea ?

1 Reply 1
Laurent_Carbonn
4 - Data Explorer
4 - Data Explorer

I've found this code to pass query parameters to find() function, but it throw "Uncaught (in promise) TypeError: done is not a function" :

base('YOUR_TABLE_NAME').find('recxxxxxxxxxxxxx', {
    returnFieldsByFieldId: {
        'fldxxxxxxxxxxxxx': true,
        'fldyyyyyyyyyyyyy': true,
        'fldzzzzzzzzzzzzz': true
    }
}, function(err, record) {
    if (err) { console.error(err); return; }
    console.log(record);
});