sfdc-trigger-framework
sfdc-trigger-framework copied to clipboard
A minimal trigger framework for your Salesforce Apex Triggers
Hi Kevin, I believe there's an issue with the addToLoopCount method, but only when the amount of records changed is greater than 200. It's easier to explain with an example,...
Hi @kevinohara80 I am using the Trigger framework but stuck at a point where I have to deal with bulk data. The framework is consuming a lot of CPU time....
Hi Kevin, Can you validate and include new feature that ignore dummy updates on trigger. here is the sample implementation: `trigger ApplicationTrigger on Application__C (before insert, before update, after insert,...
@kevinohara80 Framework is very expensive and consumes heavily Apex CPU time. Inserted @3500 Accounts and updated using batch apex , Account has NO workflows, processbuilder, flows or validation rules, matching...
How can we handle Trigger exception when max loop count exceeded?
Is it by design, or just an oversight that there doesn't appear to be a way of seeing how many loops/recursions you are current in? Would be useful to say...
It would be helpful to be able to specify a bypass by passing in a [Type](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_type.htm) rather than a String. Examples: `TriggerHandler.bypass(AccountTriggerHandler.class);` `TriggerHandler.clearBypass(AccountTriggerHandler.class);` `TriggerHandler.isBypassed(AccountTriggerHandler.class);` This would create a hard reference...
@kevinohara80 if you're interested, I can create a PR for your review. We have run into performance issues with getHandlerName. Apparently executing String.valueOf(this) can take a long time to execute...
When implementing the setMaxLoopCount from the individual handlers, the loop count gets incremented after the first chunk of 200 records are processed as it identifies the subsequent set of records...