+ Start a Discussion
vijaya lakshmi sanampurivijaya lakshmi sanampuri 

Auto increment for a text field

Hi , am new to salesforce . Is any other way to create auto increment for a text field when a new record is created.
Sri549Sri549
This can be acheivable thorugh apex logic. Write a Trigger on After Insert/Update/Delete.
vijaya lakshmi sanampurivijaya lakshmi sanampuri
Thank you for responseding my question.please can i get a sample code for this. it's a very urgent task for me.

thanks in advance
vijaya

 
vijaya lakshmi sanampurivijaya lakshmi sanampuri
my sample scenario is we have a customer object and customer_no is a text field whenever a new customer is created then customer_no is increment automatically. can any one give me a sample code for this.

Thanks in advance,
vijaya.