Salesforce
Saturday, 15 November 2014
Trigger on before insert and update example.
trigger Fieldupfdate on Employee1__c (before insert,before update) {
for(Employee1__c emp:Trigger.new){
if(emp.LastName__c==null){
emp.LastName__c = 'sampath';
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment