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
ashish_singhashish_singh 

apex Cloning of Sobject using Clone method

Hi,

 

i want to know that ,what is the use of  the folowing  arguments of "clone" method opt_preserve_id and opt_IsDeepClone.

 

in developer guide it is mentioned that if we pass false for opt_IsDeepClone, than it's create the referance of SObject and what ever changes we will do in cloned object that  will refelect in to the source object.

but when i did this ,i din'nt seen this difference .

please guide.