Our previous Salesforce developer used the below 'first-call pattern' in every Apex trigger.
trigger ContactTgr on Contact (before insert) {
public Static Boolean firstcall = True;
//Test to see if this is the first call to this trigger
if (!firstcall) {
return;
}
// actual trigger code..
firstcall = false;
}
I wonder if this still applies. Is this pattern outdated, should it be used for certain types of triggers, or is actually a good idea?