--- title: "Number range value" slug: "core-generated-number-range-value" updated: 2026-04-23T13:23:00Z published: 2026-04-23T13:23:00Z canonical: "docs.lobstersoftware.com/core-generated-number-range-value" --- > ## 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. # Number range value > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Attempts to retrieve a number range value for the specified **Number range type**. > > > [!TIP] > > Tooltip > > > > - **Usage**: Provided that a number range with the selected **Number range type** is configured, active, not yet exhausted and applicable in the given context (*input value* and variables), a value is called up and returned. > > - **Parameter**: The only **Number range type** parameter is not formally a required field. However, without any selection from the dynamic enumeration [Number range type](/v1/docs/en/core-number-range-type), "no value" (`$null`) is always returned. ![images/download/attachments/78256065/image2022-8-26_16-9-9-version-1-modificationdate-1661522949141-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-26_16-9-9-version-1-modificationdate-1661522949141-api-v2.png) The [Number range value](/v1/docs/en/core-generated-number-range-value) value resolver attempts to retrieve a number range value for the specified **Number range type**. The value resolver returns a *number range value* depending on whether a number range: - Is configured for the **number range type**, - Is set to active, - Is applicable in the given context (see note below), and - Is not yet "exhausted". For further details see [Number range](/v1/docs/en/core-number-range). If one of these criteria is not met, "no value" (`$null`) is returned. **NOTE:** The dynamic assignment of number ranges for the selected **Number range type** takes into account the *input value* for the [Number range value](/v1/docs/en/core-generated-number-range-value) value resolver as a data context, which may differ from the *reference object* applicable in the context of a concatenation. The *input value* is passed to the number range assigned, if any, together with the variables valid in the context of the [Number range value](/v1/docs/en/core-generated-number-range-value) value resolver. The corresponding data can be used in its configuration to define *number parts* (see [Resolve value (Number part)](/v1/docs/en/number-range-part-resolve-value)). ## Configuration The only **Number range type** parameter is not formally a required field. However, without any selection for the **Number range type**, "no value" (`$null`) is always returned. | The selection field for the **Number range type** parameter refers to the dynamic enumeration [Number range type](/v1/docs/en/core-number-range-type) and supports a search function as shown to the right. [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) for the [Number range type](/v1/docs/en/core-number-range-type) applicable in the context of the configuration can limit the selection options. Such restrictions have no influence on the runtime behavior. | ![images/download/attachments/78256065/image2022-8-26_16-12-2-version-1-modificationdate-1661523123044-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-26_16-12-2-version-1-modificationdate-1661523123044-api-v2.png) | | --- | --- | ## Example Whenever the account of a user (see [Users](/v1/docs/en/base-user)) or guest user (see [Guest users](/v1/docs/en/base-guest-user)) is created, modified or deleted, an e-mail should be sent to an administrator with a number range value in the subject line as a unique identifier for the "Account Transaction". Specifically, the number range combines a six-digit incremental run number with an identifying letter for the transaction ("C"=CREATE, "U"=UPDATE, "D"=DELETE) and the type of account involved. Runtime example: | In the example on the right, the sequence number (#58) appears and is followed by the letter "D" (`DELETE`) and the internal class name for the deleted object of the guest user (`GuestUser`) type. | ![images/download/attachments/78256065/image2022-8-26_16-13-7-version-1-modificationdate-1661523187955-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-26_16-13-7-version-1-modificationdate-1661523187955-api-v2.png) | | --- | --- | Configuration: | An event handler is configured as shown on the right: - **Triggering events** are defined as "Delete", "Create", "Update" (see [Common action event](/v1/docs/en/core-common-action-event)). - The **Validating rule** performs a [Check type](/v1/docs/en/core-check-type-rule) on the overall class "Interface > Users" so that event actions are performed only for [Users](/v1/docs/en/base-user) and [Guest users](/v1/docs/en/base-guest-user). - At runtime, the [E-mail](/v1/docs/en/core-send-mail-actor) event action receives the account to which the triggering event refers as *input value*. Its data is therefore also available for the value resolvers defined in the configuration: - In the **Subject** parameter, this concerns the [Number range value](/v1/docs/en/core-generated-number-range-value) value resolver, which refers to the specially created **Number range type** "Account Transaction" (`ACCOUNT_TRANSACTION`) as shown in the image. - The same data could be used further on for configurations for the **Mail body builder** or for defining an attachment for the mail. Details of this are not relevant in the present example. The **Subject** for the e-mail is completely defined here by configuring a number range with the **Number range type** "Account Transaction". This contains 5 *number parts* as shown in the screenshot below: - The first is of the [Dynamic (Number part)](/v1/docs/en/number-range-part-dynamic) type and defines an incrementally ascending sequence number with a value range of 1 – 999,999, represented with leading zeros so that e-mails can be sorted by **Subject**, if necessary, to track "Account Transactions" chronologically. - This is followed by a *number part* of the [Fixed (Number part)](/v1/docs/en/number-range-part-fixed) type, which inserts an underscore as a separator. - This is followed by a *number part* of the [Resolve value (Number part)](/v1/docs/en/number-range-part-resolve-value) type with the description "Event", which sets the identification letter "C", "U" or "D".This enables a concatenation of the [Triggering event](/v1/docs/en/core-caused-event-resolver) value resolver, which is not visible in the image, with a [Substring](/v1/docs/en/core-sub-string-resolver) value resolver, which only takes the first character from the internal name of the event. - This is followed by a *number part* of the [Fixed (Number part)](/v1/docs/en/number-range-part-fixed) type, which inserts an underscore as a separator. - The final part is another *number part* of the [Resolve value (Number part)](/v1/docs/en/number-range-part-resolve-value) type, which (see image) reads the internal class name from the variable `entityClass` and replaces all text characters up to the last full stop with nothing via the concatenated [Replace text](/v1/docs/en/core-replace-string-resolver) value resolver (i.e. "removes" the *namespace* part of the class name). What remains is the internal name of the class (here: "User" or "GuestUser"), which should suffice for the **Subject**. | ![images/download/attachments/78256065/image2022-8-26_16-14-45-version-1-modificationdate-1661523285775-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-26_16-14-45-version-1-modificationdate-1661523285775-api-v2.png) | | --- | --- | | ![images/download/attachments/78256065/image2022-8-26_16-17-30-version-1-modificationdate-1661523450814-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-8-26_16-17-30-version-1-modificationdate-1661523450814-api-v2.png) |