+ Start a Discussion
micwamicwa 

Opportunity with autoNumber

I need to automatically name opportunities in this format:
AccountName - Autonumber {000000}

How can I implement that? If I create a helping field of type auto number the field is not set in the before insert trigger. In the after insert trigger I can't rename the opportunity.

Any help appreciated.
Will678Will678

Micwa,

Did you ever figure out how to fix this?  I have the same problem.

-- Will

micwamicwa
No I didn't
Will678Will678
Micwa,
 
We actually solved this problem in another way.  Instead of writing Apex for this, we created a workflow which updates the name every time the record is updated. 
 
-- Will