Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

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

Topic Labels: Scripting extentions
258 2
cancel
Showing results for 
Search instead for 
Did you mean: 

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)

Thanks @Kamille_Parks ! this is it :grinning_face_with_big_eyes: