Does anyone have an idea why my trigger doesn't want to save the o.Closedate, only the stagename works fine. but the error I get on closedate is
"variable doesn't exists"
...thanks in advance.
trigger Opportunity_Before_Update on Opportunity (before insert) {
for(Opportunity o: trigger.new)
o.Stagename = 'New';
o.CloseDate = Date.today()+90;
}