Write Trigger for before Insert on account object

Bynayakdillip

Write Trigger for before Insert on account object

trigger AccountTrigger on Account (after insert,before insert,after update) {
If(Trigger.IsBefore){
for(Account AccountDetail:Trigger.New){
If(AccountDetail.Type=='Prospect'){
AccountDetail.AnnualRevenue=5;//Update AnnualRevenue
}
}
}

About the author

nayakdillip administrator

Leave a Reply