Insert new Contact record using trigger

Insert new Contact record using trigger


Trigger Class:

trigger createContact on Contact (after insert,before insert) {
 
 
 for (Contact con : Trigger.new) {
  
 con.FirstName = 'Suj';
 con.LastName = 'Max';
        con.Email = 'sfdctest845@gmail.com';
        con.Phone = '+178976';
        try{
 insert con;
         }Catch(Exception e){
        system.debug('e');
         } 
       }
 
}



*** Trigger Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ***


Visualforce Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***

Apex Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***

Lightning Component Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***

Lightning Design System Most Common Interview Questions and Answers for MNCs and Small-Mid Companies ⇒ *** Comming Soon ***

Freelancing Services At Salesforce: Freelancing Services

For Job Support click this URL: Job Support

Comments

Popular posts from this blog

If you looking for Salesforce Certified Freelancer for you Salesforce org works feel free to contact us, details are in below:

Visualforce page that shows Contact details using an Extension controller

Trigger Upsert Contact record using trigger when account record is updated