I am attempting to set up an automation and have a script update a linked field in a table. When testing my script the output gives me this error. “Your script has a syntax error” (adding this for search engines cause I could not find this on google at all)
The bit of code that makes this error happen is this (it has no syntax highlighted saying it’s an error)
await customersTable.updateRecordAsync(depo, {
'Dams': dogs
})
depo
is from here
let depo = depositors.getRecord(depositors.recordIds[index])
depo
looks like this when logged: {id: "rec1231412312", name: "Some name"}
dogs
is an array of objects (“dog” records) like this.
I’m not sure where to go from here cause this error leads me nowhere. I have tried just passing an array of IDs. I’ve tried passing an array of objects with just the IDs and not the name. Nothing has worked so far. Is anyone able to tell me what I’m doing wrong?