Skip to main content
July 11, 2023
Solved

Set up a Copy Record Process Model

  • July 11, 2023
  • 3 replies
  • 0 views

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 [

color: black

year: 2019

]

Best answer by mathieud0001

You can either use a!update to remove the primary key or use a type constructor and copy over the attributes.

3 replies

mikes0011
Brainy
July 11, 2023
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?

July 18, 2023

Yes, I got it to work thank you! 

mathieud0001
July 11, 2023

You can either use a!update to remove the primary key or use a type constructor and copy over the attributes.