I am trying to create new records via airtable.js,
when I try to create a new record in Link-to column with row-value (i.e. name - string not Record ID),
it does not work and reply
Class {error: “INVALID_RECORD_ID”, message: “Value “VALUE” is not a valid record ID.”, statusCode: 422}
Is there any way to avoid this condition?
or there is not “typecast” command in airtable.js ? if yes, please let me know some example,
var dataCompt = {
"field1": "value1(text)",
"field2(Link-to column)": "value2(text)"
};
function createATData(){
base(tableName).create(dataCompt, function(err, record) {
if (err) { console.log(err); return; }
//loadArtists();
});
}