Change Auto Number Field Format of Existing Records in Salesforce

I create the custom object named Employee__c to store the employee records in Salesforce. For the Employee ID, create an Auto Number field that generates values in the following format:

  • EMP ID-1003
  • EMP ID-1004

Later, the HR team wants to change the format of this Auto Number to include the year of joining. For example, they want it to look like:

  • 2025-EMP-1004
  • 2025-EMP-1003

As a Salesforce admin, I need to update the Auto Number field format so that new records follow the new numbering style, while also updating existing records to match the new format.

In this tutorial, I will explain how to change the auto number field format of existing records in Salesforce so that new records follow the new numbering style.

Change Auto Number Field Format of Existing Records in Salesforce

In the screenshot below, you can see the old records where the Employee ID Auto Number was generated in the earlier format.

Auto Number Field Format in Salesforce
  1. To change the auto number field format, you need to navigate to the Setup -> click the Object Manager tab -> search for the object on which you have created the auto number field.

Then, open the Field & Relationship, and then open the Auto Number data type field.

Salesforce Auto Number Field Format
  1. Then, to change the display format of the auto-number field, click the Edit button.
Change Auto Number Field Format in Salesforce
  1. After that, as you scroll down, you will see the Auto Number Options section, where we have the Auto Number Display Format field.
  2. You need to change the format according to your requirements and click the Save button. This time, you will not see the Starting Number field because we are only changing the format; the count of new records will start from the count of the old records that ended.

After that, click the Save button to apply the changed display auto number format.

Change Auto Number Field Format of Existing Records in Salesforce
  1. After saving the changes to the auto number field format, you can view the newly changed auto number format when navigating to the record page or the field where the value is displayed.
How to Change Auto Number Field Format of Existing Records in Salesforce

In this way, we can modify the auto-number field format of existing records in Salesforce so that new records adhere to the new numbering style.

Conclusion

I hope you have got an idea about how the Auto Number field works in Salesforce and how we can change its format for new records. Remember, the existing records will not update automatically when the format is changed. To apply the new format to older records, we need to use a Flow, Formula Field, or Data Update.

You may like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.