+ Start a Discussion

Batch job to Copy records from parent object to child object

Hi All,

I have a object called Interaction which has selflookup relationship and relation ship name is parent. Interaction also has child object participant. Now, assume one interaction has several child interactions. I want to copy participant records from parent to child interation.
Please help me with the algorithm or psuedo code to implement this requirement.

Thanks in advance