How to Set Starting Number for Auto Number Field in Salesforce

In Salesforce the starting number for the auto number field is the initial value is the starting value assigned to the field when a record is created. In Salesforce the Auto Number field are special field that automatically generates a unique identifier for each record in an object.

In this Salesforce tutorial, we will learn how to set the starting number for the auto number field in Salesforce.

For learning this process you have come to the right place and we learned this topic in both the editions of Salesforce Lightning and Salesforce Classic.

How to set the starting number for the auto number field in Salesforce Lightning

Here we will learn how to set the starting number for the auto number field in Salesforce Lightning. Let us take a real-life example, suppose there is a company that sells the product and I am working in this company as an employee.

We are setting up a Salesforce database for a small business that can help the company sell its products online. Here we are selecting the custom object called order that can track the orders from customers.

Each order should have a unique order number that starts from a particular number like 1000 and this number is set in the starting number field.

Here are the following steps

1. Open the Salesforce Lightning account. Click on the gear icon that is present at the top right corner, and then click on the Setup option.

2. Under this Setup page there is the Object Manager tab present click on the object manager tab. Select the order object, under this order page, we can see the details related to the order object.

How to set the starting number for the auto number field in Salesforce

3. We can see the Fields and Relationships option is present. Click on the Fields and Relationship option. We can see lots of fields are already created but we want to create a new field.

4. So click on the new button, our data types page is open and we can see lots of data types are present here we select the auto number field and then click on the next button. Our order page is open.

5. Under this page, we can see the information related to the order. Fill in all the information carefully. First, fill in the field label as Order Number, and then fill the display format as ORD-{0000}. After that, fill the starting number, and this number is set in the starting number field.

6. After that check the generate auto number for existing records checkbox that generates the number automatically and then fill the field name by simply clicking on the field name field and the field is automatically filled, after that click on the next button.

How to set the starting number for the auto number field in Salesforce Lightning

7. Now we move to our next step which is to establish field-level security that can select the profiles to which we want to grant edit access to this field via field-level security. The field will be hidden from all the profiles if we