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
sridhar sridharsridhar sridhar 

The following child objects(Related List) do not want to clone

Hi all, 
Created custom button(Apex controller classs) to clone the record during cloning operation but, The following list 1-6 related lists(child objects) do not want to clone while cloning record. 

1.Open Activities
2.Activity History
3.Notes & Attachments
4.Related Vendors
5.Stage History
6.Opportunity Field History. 

How to achieve this??

Etienne Rocheleau 9Etienne Rocheleau 9
Have you tried getting each of these objects separately and cloning them, then getting the ID of the newly cloned copy and assigning those new Ids to the cloned main record?