Trigger-2
The following trigger describes about when the Accounts are inserted into the data base it would add 'MR.' prefixed for all Account names. This is applicable for inserting the Account records.
trigger Trigger2 on Account (before insert) {
List<Account> accs=Trigger.New;
for(Account a:accs){
a.name='MR.'+a.name;
}
}
// Mr will be adding to ur name as a prefix
Comments
Post a Comment