--- title: "autonumber(a,b)" slug: "basic-id" updated: 2026-08-10T08:23:38Z published: 2026-08-10T08:23:38Z canonical: "docs.lobstersoftware.com/basic-id" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # autonumber(a,b) Returns the number *1* for the first call of the profile-wide [Number ranges](/v1/docs/en/intro-concepts-number-ranges) ***a***. Each subsequent call of this number range returns the subsequent integer, i.e. 2,3, etc. If the maximum value (*2147483647*) is exceeded, the following value will be *1* again. A distinct number range is managed per profile and number range name. **IMPORTANT:** When this function is executed, a connection to the main database ("hub") is established and closed again. Please note that this can lead to large performance losses with very frequent function calls. ## Parameters | Parameter | Description | | --- | --- | | a | Name of the number range. **IMPORTANT:** This is case-sensitive! | | b | (optional) If *true*, the number range is not incremented. The return value is always *2*. Default: *false*. **NOTE:** The use makes sense, for example, if you do not want the number range to be incremented in mapping tests. It is recommended to use the system variable VAR_IS_TEST as parameter in this case. | ## GUI See [Profile values](/v1/docs/en/profile-values) for profile-wide number ranges. ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | Number_Range_1 | | 1 | | Number_Range_2 | | 1 | | Number_Range_2 | | 2 | | Number_Range_1 | | 2 | | number_range_1 | | 1 | | number_range_1 | | 2 |