What is a potential design issue with the following code?
trigger accountTrigger on Account (before update){ Boolean processOpportunity = false; List<opportunity> opptysClosedLost = new List<opportunity>() List<opportunity> IstAllOpp = [select StageName from Opportunity where accountId IN :Trigger.newMap.keySet()]; if(!IstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity)
{ for(opportunity o : IstAllOpp) if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; if(!opptysClosedLost.isEmpty()) delete opptysClosedLost;
bsf_96
11 months, 1 week agoFriedConsole2000
1 year, 4 months agomoitam
1 year, 10 months agolorenac2
2 years, 6 months agolorenac2
2 years, 6 months agolorenac2
2 years, 6 months agomageshrr
2 years, 7 months ago