--- title: "All values of a dynamic enumeration" slug: "core-get-denum-values-resolver" updated: 2026-04-23T06:30:19Z published: 2026-04-23T06:30:19Z canonical: "docs.lobstersoftware.com/core-get-denum-values-resolver" --- > ## 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. # All values of a dynamic enumeration *See also:* [Enumerations](/v1/docs/en/core-dynamic-enum-definition), [Any enumeration](/v1/docs/en/core-any-dynamic-enum-value-editor) > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Returns all values of a dynamic enumeration statically defined in the configuration as a list. > > > [!TIP] > > Tooltip > > > > - **Usage**: The value resolver returns a list of all values of the dynamic enumeration selected via the **Type** parameter. Any existing *input value* for the value resolver is ignored. > > - **Parameter:** The **Type** parameter defines a static single selection from all existing dynamic enumerations in the system. > > - **NOTE:** [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) that may be used in the context do not restrict the list in the return value. ![images/download/attachments/150865898/image-2024-6-11_17-38-36-version-1-modificationdate-1718120315989-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-11_17-38-36-version-1-modificationdate-1718120315989-api-v2.png) The [All values of a dynamic enumeration](/v1/docs/en/core-get-denum-values-resolver) resolver returns a list of all values of a dynamic enumeration defined by static selection in the configuration (see [Enumerations](/v1/docs/en/core-dynamic-enum-definition)). **NOTE:** [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) applicable in the execution context do not restrict the returned list. The value resolver always returns all values (`values`) that are configured in the definition of the dynamic enumeration. ## Configuration Any existing *input value* is ignored. | The **Type** required field parameter requires the static single selection of a dynamic enumeration via a [Combobox](/v1/docs/en/fre-combo-box-vo) element. This has a search function that takes into account both the localizations and the internal (class) names for predefined and custom [Enumerations](/v1/docs/en/core-dynamic-enum-definition). | ![images/download/attachments/150865898/image-2024-6-12_8-5-18-version-1-modificationdate-1718172316840-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-12_8-5-18-version-1-modificationdate-1718172316840-api-v2.png) | | --- | --- | | As soon as a selection for the **Type** has been made, a list of values ​​of the relevant type (*here*: volume unit[]) is assumed as the type for the return value in the context of the configuration, for which specific fields may be offered. | ![images/download/attachments/150865898/image-2024-6-12_8-13-43-version-1-modificationdate-1718172822437-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-12_8-13-43-version-1-modificationdate-1718172822437-api-v2.png) | ## Examples ### Simple use case: "List" values of an enumeration In the context of event handling, the user should be asked to enter the "Economic region" per [User prompt](/v1/docs/en/frebehav-user-prompt) (as a text value) under certain conditions. A custom dynamic enumeration "Economic region" (`REGIONS`) has been created that specifies permissible values for this entry. The "Name" (`name`) of the respective value should be decisive. The "prompt" in the [User prompt](/v1/docs/en/core-user-prompt-value-resolver) specifies all permissible text keys ("Name" values) from the underlying enumeration. Runtime example: ![images/download/attachments/150865898/image-2024-6-7_19-58-1-version-1-modificationdate-1717783081366-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-7_19-58-1-version-1-modificationdate-1717783081366-api-v2.png) Configuration: | The screenshot on the right shows how the [User prompt](/v1/docs/en/frebehav-user-prompt) resolver can be used within an [Execute with](/v1/docs/en/core-with-actor) event action to provide the "Economic region" identified by text input as a *reference object* for the action block below (still empty in the image on the right) - The **Message** in the [User prompt](/v1/docs/en/core-user-prompt-value-resolver) resolver is completely determined by the [All values of a dynamic enumeration](/v1/docs/en/core-get-denum-values-resolver) resolver: - The user-defined dynamic enumeration "Economic region" (`REGIONS`) is selected as the **Type**. - In the server context (e.g. in an event handling), only the "Names" from the `name` field of the values contained appear in the string image of the list generated in this way. For the given purpose, these are abbreviations for regions that are understandable to the user regardless of any applicable localization. - The concatenated [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver below transforms the text entered by the user into the type defined by the dynamic enumeration "Economic region" (`REGIONS`). This ensures that the action block can check whether a valid input has been made, because if none of the "Names" for enumeration values match the input, "no value" (`$null`) is used as the *reference object* in the action block. **NOTE:** This configuration example solves the task of a selection decision more simply than a portal with a [Combobox](/v1/docs/en/fre-combo-box-vo) element. When using the [User prompt](/v1/docs/en/core-user-prompt-value-resolver) resolver in a productive workflow, however, it should always be borne in mind that the *server thread* for the workflow is interrupted at runtime and remains occupied until the "queried" user confirms their input, cancels the dialog or the **Time out** expires. The [User prompt](/v1/docs/en/core-user-prompt-value-resolver) resolver should not be used if the input has to be queried more often and possibly by many users at the same time. | ![images/download/attachments/150865898/image-2024-6-10_9-40-7-version-1-modificationdate-1718005206360-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-10_9-40-7-version-1-modificationdate-1718005206360-api-v2.png) | | --- | --- | ### More complex use case: "Reverse search" in a dynamic enumeration A given text value (`String`) should specify either the two or three-digit text key for a specific [Country](/v1/docs/en/core-country) (ISO 3166 ALPHA-2 or ALPHA-3). The corresponding value from the associated dynamic enumeration ([Country](/v1/docs/en/core-country)) is transferred as user data to a portal that displays details for the [Country](/v1/docs/en/core-country). | Text key (selectable) →↓ | (ALPHA-3) "`BIH`"↓ | | --- | --- | | (ALPHA-2) "`BA`" → | ![images/download/attachments/150865898/image-2024-6-10_9-25-23-version-1-modificationdate-1718004322410-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-10_9-25-23-version-1-modificationdate-1718004322410-api-v2.png) | Configuration: | The screenshot on the right shows the configuration for a section from an event handling in which the text key is available as an *external reference object* of an [Execute with](/v1/docs/en/core-with-actor) event action: - The text key is initially saved in the variable `countryCode` to enable access in the [Default value](/v1/docs/en/core-default-value-resolver) resolver (see below). - The configuration for the **Object resolver** parameter aims to obtain the value addressed via the given text key from the [Country](/v1/docs/en/core-country) dynamic enumeration as a *temporary reference object* for calling the portal (in the action block): - The [Input object (type safe)](/v1/docs/en/core-root-entity-resolver) resolver with the **Type** [Country](/v1/docs/en/core-country) attempts a type conversion for the given text key, which succeeds if it matches the "Name" (`name`) for a country. By default, this "Name" corresponds to the ALPHA-2 code for the country. Otherwise, "no value" (`$null`) is returned. - The concatenated [Default value](/v1/docs/en/core-default-value-resolver) resolver is only evaluated at runtime if there is no [Country](/v1/docs/en/core-country) value with the text key as "Name" (`name`). A search is then made for a [Country](/v1/docs/en/core-country) whose configuration feature `alpha3Code` matches the text key. The value configuration for the **Default value** parameter defines the required "reverse search": - The [All values of a dynamic enumeration](/v1/docs/en/core-get-denum-values-resolver) resolver returns all [Country](/v1/docs/en/core-country) values as a list (`Land[]`). - The [Rule list resolver](/v1/docs/en/core-list-rule-resolver) with an [Entity property rule](/v1/docs/en/core-entity-property-rule) as a search criterion determines the (first) [Country](/v1/docs/en/core-country) with the matching `alpha3Code` in the configuration, if available. The "found" [Country](/v1/docs/en/core-country) is the *reference object* for the [Open portal (Action)](/v1/docs/en/portal-open-portal-actor) event action in the action block. | ![images/download/attachments/150865898/image-2024-6-10_9-27-5-version-1-modificationdate-1718004424898-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-6-10_9-27-5-version-1-modificationdate-1718004424898-api-v2.png) | | --- | --- | **NOTE:** No "error handling" is provided here in the event that the ALPHA-3 reverse search does not return a result.