Hi All,
Suppose I add one field called Acc Code in Account. In this field, user can manually input 2 digits of alphabets. Example: user create Account with Name "Successful Company Pty Ltd" and user manually inputs the Acc Code with "SC". user create another Account with Name "Another Company Pty Ltd" and user inputs the Acc Code with "AC".
On Opportunity, I add one field called Opp Code. This field contains 5 digits, 2 digits alphabets of Acc Code from Potential Customer (Account that is referred by Opportunity as customer) and 3 digits are autonumbering. The autonumbering depends on the Potential Customer. That means, for Potential Customer "Succesful Company Pty Ltd" the Opp Code is SC001, if there is a new Opportunity for it again, the code is SC002. If the Opportunity is created for Potential Customer "Another Company Pty Ltd" then the beginning Opp Code is AC001.
I need suggestion on how to implement the automated numbering depends on Potential Customer. I imagined using Plug-in, but not sure on how to search the last Opp Code number (since the number depends on Acc Code). Would anyone mind helping or giving an example on how to do this?
Thank you :)