| title | Automatically Generate Code Attribute Values | |
|---|---|---|
| description | Automatically Generate Code Attribute Values (Master Data Services) | |
| author | meetdeepak | |
| ms.author | dkhare | |
| ms.reviewer | mikeray | |
| ms.date | 03/05/2026 | |
| ms.service | sql | |
| ms.subservice | master-data-services | |
| ms.topic | how-to | |
| ms.custom |
|
[!INCLUDE SQL Server - Windows only ASDBMI]
[!INCLUDE support-notice]
In [!INCLUDEssMDSshort], automatically generate values for an entity's Code attribute when you want an integer to be automatically assigned to the Code value each time a new member is created.
To perform this procedure:
-
You must have permission to access the System Administration functional area.
-
You must be a model administrator. For more information, see Administrators (Master Data Services).
-
The entity must exist. For more information, see Create an Entity (Master Data Services).
-
In [!INCLUDEssMDSmdm], click System Administration.
-
On the Manage Model page, select the row for the model that contains the entity that you want to edit and then click Entities.
-
On the Manage Entity page, select the row for the entity that you want to generate codes for and then click Edit.
-
Select the Create Code values automatically check box.
-
In the Start with box, type a number to begin incrementing. If members already exist, the Code will be set based on the highest existing value. For example, if the highest existing Code value is 299, the next member's Code value will be set to 300.
-
Click Save.
Automatic Code Creation (Master Data Services)
Automatically Generate Attribute Values Other Than Code (Master Data Services)