{"title":"NumberSequence.Current(Text [, Boolean]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/numbersequence/numbersequence-current-method/","by":"JOP-AL","license":"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-current-method, 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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/numbersequence/numbersequence-current-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets the current value from the number sequence, without doing any increment.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"NumberSequence.Current(Text [, Boolean]) Method","slug":"numbersequencecurrenttext-boolean-method","at":0,"chars":1065},{"level":2,"title":"Syntax","slug":"syntax","at":287,"chars":97},{"level":2,"title":"Parameters","slug":"parameters","at":384,"chars":226},{"level":2,"title":"Return Value","slug":"return-value","at":610,"chars":113},{"level":2,"title":"Example","slug":"example","at":723,"chars":200},{"level":2,"title":"Related information","slug":"related-information","at":923,"chars":142}],"text":"# NumberSequence.Current(Text [, Boolean]) Method\n> Version: _Available or changed with runtime version 4.0._\nGets 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.\n## Syntax\n```al\nCurrent :=   NumberSequence.Current(Name: Text [, CompanySpecific: Boolean])\n```\n## Parameters\nName\nType: ../text/text-data-type\nSpecifies the name of the number sequence.\n*[Optional] CompanySpecific*\nType: ../boolean/boolean-data-type\nSpecifies if the number sequence is company-specific. Default is true.\n## Return Value\nCurrent\nType: ../biginteger/biginteger-data-type\nReturns the current value from number sequence.\n## Example\nThe following example gets the current value for the number sequence MyNumberSequence, which is not company specific.\n```al\nnumber := NumberSequence.Current('MyNumberSequence', false);\n```\n## Related information\nnumbersequence-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}