Skip to main content
Solved

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

  • November 23, 2023
  • 1 reply
  • 44 views

Forum|alt.badge.img+2

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!

Best answer by confused_person

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

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+2
  • Author
  • New Participant
  • Answer
  • November 23, 2023

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