You need to sign in to do that
Don't have an account?

Clone parent-->child-->grand child
Hi All,
I have a requirement where i have to clone parent, their child and for each child their subchild.
Can onyone let me know how to process this requirement?
I have a requirement where i have to clone parent, their child and for each child their subchild.
Can onyone let me know how to process this requirement?
You can write a script n run that scriot from developer console. That script will contain a method which takes argument of parent record id. Using that Id, you can use inner query n get all the records related to parent. like child and grand child. Once you have all the related records, you can insert all of them to DB.Your recordss would be cloned.
Please let me know in case of any concerns.
Thanks,
Abhi
mark as best answer if it works to keep community clean..