Activity › Forums › Salesforce® Discussions › When to use DeepClone() in Salesforce?
-
When to use DeepClone() in Salesforce?
Posted by Shweta on February 18, 2020 at 12:50 PMWhen to use DeepClone() in Salesforce?
Shubham replied 6 years, 3 months ago 6 Members · 5 Replies -
5 Replies
-
Generally it clone the list of object but don’t hold any reference. A Deep Clone keeps the Id.
DeepClone can be used while creating a new record with the existing details of another record along with related lists.
- [adinserter block='9']
-
DeepClone() is used to clone the list of object but don’t hold any reference.
-
Deepclone is done by keeping tru in the parameters: Syntax – clone(preserveId, isDeepClone, preserveReadonlyTimestamps, preserveAutonumber))view source .
-
DeepClone is a predefined function which clone(duplicate copy) the list of object and doesn’t have any reference.
-
DeepClone is a predefined function which clone(duplicate copy) the list of object and doesn’t have any reference.
Log In to reply.