Answers for "apex best practices in salesforce"

0

apex best practices in salesforce

trigger accountTestTrggr on Account (before insert, before update) {
 
   List<String> accountNames = new List<String>{};
  
   //Loop through all records in the Trigger.new collection
   for(Account a: Trigger.new){
      //Concatenate the Name and billingState into the Description field
      a.Description = a.Name + ':' + a.BillingState
   }
    
}
Posted by: Guest on September-16-2020

Code answers related to "apex best practices in salesforce"

Browse Popular Code Answers by Language