Help

linked record scripting error

Topic Labels: Automations
Solved
Jump to Solution
499 1
cancel
Showing results for 
Search instead for 
Did you mean: 
lucasr53
4 - Data Explorer
4 - Data Explorer

hi all, 

i have a parent table that is copying data to a child table on a condition. I've written the script and I can handle all the data types except I'm having trouble with the linked field. I have a User table linked to both tables. I keep getting this error: 

id has incorrect objectId prefix "sel", expecting one of ["rec"]

the linked field I'm copying returns this object:

  1. {id: "seleCE7wF1kaofYBd", name: "Lucas", color: "cyanLight2"}

but the actual record id of "Lucas" on the user table returns "rec6TmmKCTEiSp3BA".

How can I fix this?

 
1 Solution

Accepted Solutions
lucasr53
4 - Data Explorer
4 - Data Explorer

so figured it out. I was referencing the wrong parent field which was a multiselect field not a linked record field😒

See Solution in Thread

1 Reply 1
lucasr53
4 - Data Explorer
4 - Data Explorer

so figured it out. I was referencing the wrong parent field which was a multiselect field not a linked record field😒