Jul 19, 2023 11:21 AM
I am using an automation that uses a script to append a record to another table's linked field. My code is shown below.
This is not working however, as the record.getCellValue('Worksheet: BOM") is returning an array that has the format ("string") instead of the format (id: "String"). Is there any way to fix this?
This is my error message:
Jul 24, 2023 04:24 PM - edited Jul 24, 2023 04:24 PM
The object must be written according to the "Cell write format" on this page.
Cell values & field options - Airtable Scripting
Since the bomIDs are as formatted, you can be updated this way.
await table.updateRecordAsync(inputConfig.estRecordId[0],{
'Worksheet: BOM' : bomIDs,
})
Nov 16, 2023 07:01 AM
Hey Scott, I'm getting this to work on string fields, but not for linked records. Not sure why it's different, but it is not working for linked records.