Skip to main content

Search table with field other than record ID -api

  • April 18, 2020
  • 1 reply
  • 21 views

Forum|alt.badge.img

I want to serch records by email and not record id. My script is as follows :slightly_smiling_face:

var Airtable = require(‘airtable’);
var base = new Airtable({apiKey: ‘---------------------------------’}).base(’---------------------’);
var myvar = ‘recIf7E6VEXudD9m8’

base(‘Database 1 - Natural Persons’).find(myvar, function(err, record) {
if (err) { console.error(err); return; }
console.log(‘Retrieved’,record.get(‘Registration No.1’));
});

How shall i go about it?

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+19
  • Inspiring
  • April 19, 2020

The API docs explain the capabilities of the filterByFormula feature - that should be all you need to filter records based on arbitrary fields.