public without sharing class FixtureSetDetailHandler extends Oly_TriggerHandler { private Map newMap; private Map oldMap; private List newList; private List oldList; public FixtureSetDetailHandler() { this.newMap = (Map) Trigger.newMap; this.oldMap = (Map) Trigger.oldMap; this.newList = (List) Trigger.new; this.oldList = (List) Trigger.old; } protected override void beforeInsert() { beforeSetValue(); } protected override void beforeUpdate() { beforeSetValue(); } private void beforeSetValue() { for (Fixture_Set_Detail__c nObj : newList) { nObj.Name_CHN_Created__c = nObj.Name_CHN__c; } } }