You need to sign in to do that
Don't have an account?
Sujan Kumar Reddy
Interview question: Awaiting replies from experts
Hi,
Interview Question: Awaiting replies from experts
Will the following trigger work ?
trigger tgrCounter on Mileage__c (after insert, after update) {
List MilToupdate = new List();
for(Mileage__cMlg : Trigger.new){
Mlg.Counter__c = Mlg.Counter__c+1;
MilToupdate.add(Mlg);
}
updateMilToupdate;
}
No.
The reason is it will cause recursion.
Regards,
Magulan D
Salesforce.com certified Force.com Developer.
SFDC Blog
If this post is your solution, kindly mark this as the solution.