You need to sign in to do that
Don't have an account?
Divyansh Verma 10
auto_number trigger
Write a trigger to make an autonumber field on Account with the format "ACC-001".This field will increment sequentially as (ACC-002, ACC-003, .....) everytime when a new account is inserted.
Thanks.
Thanks.
You can create new custom field with data type as auto number and it should generate incremental values sequentially.
Review below link which has a working example if you want to use trigger.
https://developer.salesforce.com/forums/?id=9060G0000005QoIQAU
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar