sfdc-trigger-framework icon indicating copy to clipboard operation
sfdc-trigger-framework copied to clipboard

Request for Enhancement: ignore Dummy Updates

Open spmamidi opened this issue 6 years ago • 1 comments
trafficstars

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, after update, before delete, after delete) { boolean anyChanges = true; if (Trigger.isUpdate) { anyChanges = !Trigger.oldMap.equals(Trigger.newMap); } if (anyChanges == true) { new ApplicationTriggerHelper().process(); } }

Siva Mamidi.

spmamidi avatar Jan 04 '19 21:01 spmamidi

That feels like a bit of a bloat of the TriggerHandler API. I think that is best implemented in your trigger handler implementation.

kevinohara80 avatar Dec 04 '19 18:12 kevinohara80