How to clone a record using Apex in Salesforce?

How to clone record using Apex Clone method in Salesforce

In this article we will learn how to clone a record using apex in Salesforce. In order to clone a record in Salesforce using apex we have to make use of clone() method of sObject class which allows developers to create a copy of an sObject. The clone() methods gives control to developer whether to … Read more

Fix: ReadOnlyTimeStamps Not Preserved When Cloning Records in Apex

Fix: ReadOnlyTimeStamps Not Preserved When Cloning Records in Apex

In this article I will tell you the solution of ReadOnlyTimeStamps not getting preserved When Cloning Records in Apex. So few days back I was working with cloning a record using Apex. While going through the official documentation I have found that we can also copy the read-only fields like CreatedById, CreatedDate, LastModifiedById, and LastModifiedDate … Read more