May 03, 2022 08:43 AM
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
May 03, 2022 09:11 AM
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)
May 04, 2022 02:59 AM
Thanks @Kamille_Parks ! this is it :grinning_face_with_big_eyes: