function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sun tarsun tar 

How to create Custom clone button that should dynamically clone the master , its childs and also grand childs ?

Hi all

How to create Custom clone button that should dynamically clone the master , its childs and also grand childs ?

Pls help me with the working code..

Thanks in advance
ShashForceShashForce
Hi,

These links should help:
http://stackoverflow.com/questions/18320047/dynamically-fetch-all-the-related-lists-for-an-object-for-eg-account
http://salesforce.stackexchange.com/questions/8493/deep-clone-parent-child-grand-child
http://nwilliamsscu.blogspot.sg/2013/09/deeper-clone-clone-salesforce-objects.html
http://christopheralunlewis.blogspot.sg/2012/04/clone-plus-clone-salesforce-objects.html

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.

Thanks,
Shashank