2 réponses
Hi Gouse,Try the below Trigger:trigger PriceUpdate on MyObject__c (before insert) { for(MyObject__c a:trigger.new){ If(a.Use_Standard_Price__c == true){ a.Standard_Price__c = a.Price__c; } }}In before insert you don't have to use the DML Statement to overide the new records just the assign the values like above will make the respected changes.Thanks,Maharajan.C