# NumberSequence data type
> Version: _Available or changed with runtime version 4.0._
Is a complex data type for creating and managing number sequences in the database.
## Static methods
The following methods are available on the NumberSequence data type.
Method name|Description
Current(Text [, Boolean])<numbersequence-current-method>|Gets the current value from the number sequence, without doing any increment. The value is retrieved out of transaction. The value will not be returned on transaction rollback.
Delete(Text [, Boolean])<numbersequence-delete-method>|Deletes a specific number sequence.
Exists(Text [, Boolean])<numbersequence-exists-method>|Checks whether a specific number sequence exists.
Insert(Text [, BigInteger] [, BigInteger] [, Boolean])<numbersequence-insert-method>|Creates a number sequence in the database, with the given parameters.
Next(Text [, Boolean])<numbersequence-next-method>|Retrieves the next value from the number sequence.
Range(Text, Integer [, Boolean])<numbersequence-range-string-integer-boolean-method>|Retrieves a range of values from the number sequence.
Range(Text, Integer, var BigInteger [, Boolean])<numbersequence-range-string-integer-biginteger-boolean-method>|Retrieves a range of values from the number sequence.
Restart(Text [, BigInteger] [, Boolean])<numbersequence-restart-method>|Restarts a number sequence.
## Related information
Using number sequences<../../devenv-number-sequences>
Get atarted with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

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/methods-auto/numbersequence/numbersequence-data-type, 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/methods-auto/numbersequence/numbersequence-data-type/
