Creating a Record by Script that Links to Another Table

I wrote a script to create a record, but I’m trying to link it to another record (Customers table) when I create it. I have the Customer Name and ID field value, but AirTable doesn’t seem to like the format I’m using for the ID.

I’m getting the error message, “P: Can’t create records: invalid cell value for field ‘Link To Customers’.
Cell value has invalid format: must be an array.
Linked records field value must be an array of objects with property ‘id’ corresponding to linked record id.”

I’m not sure what format AirTable wants to see for the value of field ‘Link to Customers’. Thanks.

This topic was solved and automatically closed 15 days after the last reply. New replies are no longer allowed.