Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Using a Script to link multiple records in one field

Topic Labels: Automations
230 1
Showing results for 
Search instead for 
Did you mean: 

Hey! Has anyone successfully created a script that can use a dynamic array to link multiple records together? I can hard code the values but using an array is alluding me.

Thanks for the help!

1 Reply 1

To edit a link field you have to supply it an array of objects that looks like:

[{id: "recXXXX1"}, {id: "recXXXX2"}, {id: "recXXXX3"}]

You could generate that by doing .map(x => {return {id:}}) on an array of records.