Activity Forums Salesforce® Discussions When to use DeepClone() in Salesforce?

  • Anjali

    Member
    February 18, 2020 at 2:04 pm

    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.

  • Pooja

    Member
    February 18, 2020 at 2:37 pm

    DeepClone() is used to clone the list of object but don’t hold any reference.

  • Marziya

    Member
    February 18, 2020 at 2:39 pm

    Deepclone is done by keeping tru in the parameters: Syntax - clone(preserveId, isDeepClone, preserveReadonlyTimestamps, preserveAutonumber))view source .

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Kirandeep

    Member
    February 18, 2020 at 3:17 pm

    DeepClone  is a predefined function which  clone(duplicate copy) the list of object and  doesn’t have any reference.

  • Shubham

    Member
    February 18, 2020 at 5:11 pm

    DeepClone is a predefined function which clone(duplicate copy) the list of object and doesn’t have any reference.

Log In to reply.

Popular Salesforce Blogs