I am trying to set up a related action that will allow me to add a new record, but copy all the attributes of the record that I am currently on. Currently I can only get it to update the current record. I think I need to remove the primary key that is present before writing the new record, but Im not sure.
Example: I have a list of record type: vehicles. I want to be able to go to vehicle 1, click Copy, and then save, and it created vehicle 2.
vehicle 1 [
color: black
year: 2019
]
vehicle 2 [
Discussion posts and replies are publicly visible
mhall said:I think I need to remove the primary key
This is the first thing I'd try - it's what you'd do for entity-backed copies at least. Does it not work?
You can either use a!update to remove the primary key or use a type constructor and copy over the attributes.
Yes, I got it to work thank you!