TypeError: request.record_id.getCellValueAsString is not a function, can't understand why

Hi !

I hope you can help me, I am trying to get the cell value of a record I have from an automation.
I checked all the documentation and don’t understand what’s wrong (except maybe that it just doesn’t work with airtable automation ?)
Anyway here is my code

let requestTable = base.getTable('Demandes techs');
let request = input.config();
let record = request.record_id;

let statusWhenQuote = record.getCellValueAsString('Quote status');
console.log(record.getCellValueAsString("Quote status"));

Many thanks for your help

You’re trying to pull cell values from a record ID. You need to pull from the record object. your code should look more like:

let recordID = request.record_id
let record = await requestTable.selectRecordAsync(recordID)
2 Likes

Thanks @Kamille_Parks ! this is it :smiley:

1 Like