function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CharlieLangCharlieLang 

set autonumber on name field

Hi, I have the name field set to autonumber but need to set the starting number to 14000. Without loading in 14k records amnd deleting them, is there a way in the dev console to set the number for the autonumber field?
Best Answer chosen by CharlieLang
Alain CabonAlain Cabon
Hi,

Jeff May: Here's a great little trick (so you don't have to make another field, then do a ton of data jobs.

Change the AutoNumber to a Text (it will tell you all the current values will be kept -- which is what you want.

Then, change the Text to an AutoNumber and it will ask you for a format and Starting Number,.

https://success.salesforce.com/answers?id=9063A0000019PmlQAE

All Answers

Alain CabonAlain Cabon
Hi,

Jeff May: Here's a great little trick (so you don't have to make another field, then do a ton of data jobs.

Change the AutoNumber to a Text (it will tell you all the current values will be kept -- which is what you want.

Then, change the Text to an AutoNumber and it will ask you for a format and Starting Number,.

https://success.salesforce.com/answers?id=9063A0000019PmlQAE
This was selected as the best answer
CharlieLangCharlieLang
thanks - didnt realise it worked on record name fields....