In Dynamics 365, we have the option to create an auto-number field type, which handles the autonumbering for the entity automatically without the need for any third-party or custom plugin.
This blog will look into how we can create an auto number type field in D365. For this example, let us suppose we need to add auto number functionality in the Contact entity.
Creating an AutoNumber field
First, navigate to https://powerapps.microsoft.com and login with your credentials.
In the power-apps portal navigate to Data > Tables > Contact.
You’ll see a list of components of the Contact entity. From here, click on the Add Column button on the top left, a panel will show up on the right as shown below.
Fill in the required details; choose the data type as AutoNumber.
Choose the prefix, minimum number of digits (digits the auto number sequence will contain), the seed value (the starting value of the sequence)
Now add the newly created field to a form. Go to forms and edit the Main form as shown.
Now go to table columns from the left side menu and search for the newly created auto-number field and drag it to the form.
Now create a new contact from the CRM. After saving the record, you’ll see the field is populated with the auto-number sequence shown in the image below.