Help

Save the date! Join us on October 16 for our Product Ops launch event. Register here.

Re: TypeError: record.getCellValue is not a function or its return value is not iterable

Solved
Jump to Solution
1664 0
cancel
Showing results for 
Search instead for 
Did you mean: 
confused_person
4 - Data Explorer
4 - Data Explorer

Hi,

I'm getting this error when trying to append to a linked field. The code in question is:

 

ModelRange.updateRecordAsync(record, {'Models List': [...record.getCellValue('Models List'),{id : BMRecord[0]}]});

 

I'm pretty sure that 'record' is indeed a record object, as it's obtained from 

 

let query = await ModelRange.selectRecordsAsync();
let record = query.getRecord(another[0]);

 

where another[0] is a record ID. Let me know if the rest of my code is needed to diagnose the error, although I can imagine that I'm missing something obvious.

Thank you!

1 Solution

Accepted Solutions
confused_person
4 - Data Explorer
4 - Data Explorer

I found a workaround - all I needed to do was add all my linked records at once in an array.

See Solution in Thread

1 Reply 1
confused_person
4 - Data Explorer
4 - Data Explorer

I found a workaround - all I needed to do was add all my linked records at once in an array.