I have a requirement where a related list records needs to be duplicated and put in another related list where both are related to the same parent. Has anyone built it?
I have a requirement where a related list records needs to be duplicated and put in another related list where both are related to the same parent. Has anyone built it?
Best Answer
Assuming you are trying to do this in Apex, here is how you can accomplish this. First Query all the child records, clone them and add them to a List. Insert the List so that it will create another related list.