You need to sign in to do that
Don't have an account?

How to clone a record of standard objects record with specific fields (not all the fields that comes when cloned)
Hi,
I have a scenario like,i would like clone a record of standard object but i dont want all the fields to be come in through cloning, i want to choose specific fields from the record and clone,how could i achieve this,
your answers and suggestions will be highly appreciated,
I have a scenario like,i would like clone a record of standard object but i dont want all the fields to be come in through cloning, i want to choose specific fields from the record and clone,how could i achieve this,
your answers and suggestions will be highly appreciated,
Another important thing, that if the field of the object is another object then with "=" we will have reference on this field, not an additional copy of this field in heap.
I mean: If we need real clone, we have to create new list of contacts: So, lets say, you need just a clone object for code(actually, when we get object from SOQL, we are getting a 'clone/copy' of the records from database, so maybe this code is not what you need):