Help

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

Topic Labels: Scripting extentions
867 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Floriane_Hibelo
5 - Automation Enthusiast
5 - Automation Enthusiast

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
image

2 Replies 2

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)
Floriane_Hibelo
5 - Automation Enthusiast
5 - Automation Enthusiast

Thanks @Kamille_Parks ! this is it :grinning_face_with_big_eyes: