You need to sign in to do that
Don't have an account?
Saurabh Smarty
Unique custom field on insert of new record
Hi All,
I have a scenario, wherein I have a custom field thats made of 8 characters- first four being letters and the next four digits. I need to increment the letters part every time a new record of this object is inserted and it has to be unique for every record.
I want to do this using apex triggers.
Any help appreciated !
I have a scenario, wherein I have a custom field thats made of 8 characters- first four being letters and the next four digits. I need to increment the letters part every time a new record of this object is inserted and it has to be unique for every record.
I want to do this using apex triggers.
Any help appreciated !
That is fine, Now you can use Auto number field to generate/Increase the nunber for every new record. If you want it to be custom editable field, use Workflow field update to copy the Custom field. Make it the autonumber field in backend.
https://success.salesforce.com/answers?id=90630000000hIMVAA2