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
sagarrrrsagarrrr 

Write a Trigger on Account which will create the clone record. (Hint : Map trigger.new to clone record)

Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi saurabh,
Please refer below link which has similar question .
https://developer.salesforce.com/forums/?id=9062I000000gA9lQAE

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards
pratiksha mogal 6pratiksha mogal 6
// create one class and create another class for recursive and fetch it to main class

public class CloneRecordOfAccount {
    public static void Accountrecord(list <account> lcclist){
        if (Recursive.runonce()){
            list <account> newlist = new list <account>();
         newlist = lcclist.deepclone();
        insert newlist;
        }
     }
    }

public class Recursive {
    Private static boolean run = true;
    public static boolean runonce(){
        if (run){
            run=false;
            return true;
        }
        else{
            return run;
        }
        }
    }