public with sharing class updateTenDeleteBackHandler extends Oly_TriggerHandler { private Map newMap; private Map oldMap; private List newList; private List oldList; public updateTenDeleteBackHandler() { this.newMap = (Map) Trigger.newMap; this.oldMap = (Map) Trigger.oldMap; this.newList = (List) Trigger.new; this.oldList = (List) Trigger.old; } protected override void beforeUpdate() { updateTenDel(); } private void updateTenDel() { List updateTenList = new List(); for (Tender_information__c TenoldInfo : newList) { if(TenoldInfo.Logical_delete__c == false && (TenoldInfo.Logical_delete__c != oldMap.get(TenoldInfo.Id).Logical_delete__c)){ TenoldInfo.Retain_Tender__c = null; } if(TenoldInfo.Retain_Tender__c == null && (TenoldInfo.Retain_Tender__c != oldMap.get(TenoldInfo.Id).Retain_Tender__c)){ TenoldInfo.Logical_delete__c = false; } // updateTenList.add(TenoldInfo); } // if(updateTenList.size()>0){ // update updateTenList; // } } }