kevinohara80 / sfdc-trigger-framework

A minimal trigger framework for your Salesforce Apex Triggers
MIT License
952 stars 515 forks source link

Request for Enhancement: ignore Dummy Updates #17

Open spmamidi opened 5 years ago

spmamidi commented 5 years ago

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.

kevinohara80 commented 4 years ago

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