Skip to main content
28 respuestas
  1. 3 nov 2020, 9:09
    Your trigger logic will be like below:

    List<CustomLead__c> customLeadsList = new List<CustomLead__c>();

    for(Lead ld: trigger.new) {

        CustomLead__c customLead = new CustomLead__c();

        customLead.Name = ld.Name; //map other needed fields same way

        customLeadsList.add(customLead);        

    }

    insert customLeadsList;