# AutoSplitKey Property
> Version: _Available or changed with runtime version 1.0._
Sets whether a key is automatically created for a new record placed between the current record and the previous record.
## Applies to
 Request Page
 Page
## Property Value
True if the key is automatically created for the new record; otherwise, false. The default value is false.
## Syntax
```al
AutoSplitKey = true;
```
## Remarks
To set this property to a value of true, the following conditions must be met:
 The current key must be the primary key.
 The last field in the primary key must be an Integer Data Type<../methods-auto/library>, BigInteger Data Type<../methods-auto/library>, GUID Data Type<../methods-auto/library>, or Decimal Data Type<../methods-auto/library> field.
When AutoSplitKey is enabled, a value is automatically calculated for the last field of the primary key when a new record is inserted between two existing records. The new key value is set to a value halfway between the keys of the surrounding records.
### Negative key values
> APPLIES TO: Business Central 2025 release wave 1 and later
If a new row is inserted before the first record in the list, a negative key value may generated so that the new record sorts before all existing records. Both 0 and negative values are allowed for numeric key fields, though AutoSplitKey doesn't currently generate 0 as a value.
## Related information
devenv-properties

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-autosplitkey-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-autosplitkey-property/
