📅  最后修改于: 2022-03-11 14:56:40.356000             🧑  作者: Mango
trigger accountTestTrggr on Account (before insert, before update) {
List accountNames = new List{};
//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
}
}