Creating an Autoincrement Field

Check @urbanite response above…

More info on Vardefs here: https://docs.suitecrm.com/developer/vardefs/

Hi,
A ready plugin is available without worrying to learn programming.

This plugin allows to add an Auto-increment field to any core module and custom module.

I want to Create one unique number field in Account module. This field is auto generate and alpha numeric. When account is created then this field value will auto genetare and must be unique.

I will suggest to use a combination of logichook and query if you are a programer.

First create a text field from studio. Then on a before_save logic hook, create a query that gets the last saved id and you create a process to increase it by on. Then you concatenate with your custom string and assign it to your custom field.

That will five you direct control on how to create your custom ID.

Thanks,

AlxGr

@jrmk, New topics please !