Skip to content
epilot-berater.de

Blog

Dependent dropdowns in epilot journeys: multi-level and live from your API

How the epilot app Dynamic Cascade loads up to three dependent dropdowns live from your API: placeholders, multi-select, stored output, entity mapping.

By Last updated: 11 min read

Many requests in a journey follow an order: first the utility type, then the request, then the details. Which requests make sense depends on the utility type, which details fit depends on the request. This article shows how the epilot app Dynamic Cascade loads such dependent dropdowns live from your backend and what arrives in epilot afterwards.

It was written by Marcel R. G. Berger. I have worked as a software developer and software architect for more than 20 years and work with epilot as an external consultant and developer of apps and customizations. The text is aimed at the people responsible for journeys and IT at municipal utilities, grid operators and energy suppliers. The Journey block was checked in the epilot sandbox on 4 and 5 November 2026. The description of the automation action and output format was added on 16 November 2026. The block’s interface and messages are in German; English translations are given in brackets.

When is a single dropdown not enough?

A single dropdown is not enough as soon as the options of one field depend on the selection in another. Typical examples are requests per utility type, product types per grid area, or tariffs per grid area and product type.

With a journey’s built-in tools, this can only be modelled with many fields and conditions, one per combination. Every new utility type or request then means changes in several places of the journey. If the lists already live in your backend, you also maintain them twice.

For a single list from an API there is the sibling app Dynamic Dropdown. How it works is described in the article Dropdowns in epilot journeys: options live from your own API.

What is Dynamic Cascade?

Dynamic Cascade is an epilot app with a Custom Journey Block: up to three dropdowns that build on each other. Each level loads its entries live from your backend or API, based on the selection above. Several entries can be selected in the lowest level.

PropertyDynamic Cascade
Typeepilot app with one Custom Journey Block
ProviderDigitalFreedom Global LLC
Levels1 to 3, the lowest with multi-select or single select
Entriesup to 1000 per level, live from your API
Fields per entrykey, label, value, optional info
Price€1,990 net per year per epilot organization, updates included

The full setup guide with every block argument is on the Dynamic Cascade product page.

How do the levels depend on each other?

Each level has its own source. In that source, {1} and {2} stand for the value of the selection in level 1 and 2. The block inserts the values URL-encoded and loads the level as soon as the level above has a selection.

Level 1: /grid-areas
Level 2: /product-types?grid_area={1}
Level 3: /tariffs?grid_area={1}&product_type={2}

Three fixed rules apply:

  • A level stays locked and shows “Bitte zuerst oben auswählen” (please select above first) until the level above has a selection.
  • When a selection changes, every level below is cleared, because its entries no longer fit the new selection.
  • A level may only use levels above it. Level 2 knows {1}, level 3 knows {1} and {2}.

If a placeholder is part of the path, its value must not contain / or \ and must not be . or ... Otherwise a value from an upper level could leave the intended path. The level then shows “Die Optionen konnten nicht geladen werden.” (the options could not be loaded). In parameters after the ? any value is allowed.

What does the API return per level?

By default, each level expects a JSON array with the fields key, label, value and an optional info, just like Dynamic Dropdown. If your API returns a different format, you map the list and the fields per level with block arguments.

The second level of the demo, for example, returns this response:

{
  "anliegen": [
    {
      "id": "strom-neuanschluss",
      "titel": "Neuer Netzanschluss",
      "kennung": "neuanschluss",
      "beschreibung": { "kurz": "Erstanschluss eines Gebäudes oder Grundstücks" }
    }
  ]
}

With level2_items_path = anliegen, level2_key_field = id, level2_label_field = titel, level2_value_field = kennung and level2_info_field = beschreibung.kurz the block reads it correctly. The dot paths reach across any number of object levels. The block skips entries without key, label or value; for duplicate keys the first one wins. Each level shows at most the first 1000 entries.

When a level is opened, the block reloads its list, at most every 5 seconds. Typing searches each level for a fragment of the value or label.

How does multi-select work?

In the lowest level the list stays open after each selection, and selected entries carry a check mark. Below the field they appear as tags, each with its own remove button. The field shows the count, for example “2 ausgewählt” (2 selected).

The upper levels are always single selections, because the level below needs exactly one value to build on. If the lowest level should allow only one entry as well, turn on the switch “Unterste Stufe: nur ein Eintrag” in the Journey Builder. With only one configured level, Dynamic Cascade is a plain multi-select from your API.

What is stored in epilot on submit?

The block only stores something once at least one entry is selected in the lowest level. If it is set as a required field, the journey cannot be submitted before that. The message “Bitte treffen Sie eine Auswahl.” (please make a selection) then appears at the first level still open.

The submission stores the selection as JSON with schema_version 2. This example shows two selected details under Gas and Gasanschluss stilllegen:

{
  "app": "dynamic-cascade",
  "schema_version": 2,
  "text": "Sparte: Gas; Anliegen: Gasanschluss stilllegen; Details: Vorübergehende Sperrung; Rückbau des Hausanschlusses",
  "lines": [
    {"label": "Sparte", "text": "Gas"},
    {"label": "Anliegen", "text": "Gasanschluss stilllegen"},
    {"label": "Details", "text": "Vorübergehende Sperrung; Rückbau des Hausanschlusses"}
  ],
  "levels": [
    {"level": 1, "title": "Sparte", "key": "gas", "label": "Gas", "value": "gas"},
    {"level": 2, "title": "Anliegen", "key": "gas-stilllegung", "label": "Gasanschluss stilllegen", "value": "stilllegung"}
  ],
  "items": [
    {"key": "gas-stilllegung-sperrung", "label": "Vorübergehende Sperrung", "value": "sperrung", "info": ""},
    {"key": "gas-stilllegung-rueckbau", "label": "Rückbau des Hausanschlusses", "value": "rueckbau", "info": ""}
  ],
  "multiple": true,
  "path": [
    {"key": "gas", "label": "Gas", "value": "gas"},
    {"key": "gas-stilllegung", "label": "Gasanschluss stilllegen", "value": "stilllegung", "info": "Sperrung, Stilllegung oder Rückbau"}
  ],
  "selected": [
    {"key": "gas-stilllegung-sperrung", "label": "Vorübergehende Sperrung", "value": "sperrung"},
    {"key": "gas-stilllegung-rueckbau", "label": "Rückbau des Hausanschlusses", "value": "rueckbau"}
  ],
  "level1_key": "gas",
  "level1_label": "Gas",
  "level1_value": "gas",
  "level1_title": "Sparte",
  "level2_key": "gas-stilllegung",
  "level2_label": "Gasanschluss stilllegen",
  "level2_value": "stilllegung",
  "level2_title": "Anliegen",
  "selected_title": "Details",
  "selected_keys": "gas-stilllegung-sperrung; gas-stilllegung-rueckbau",
  "selected_labels": "Vorübergehende Sperrung; Rückbau des Hausanschlusses",
  "selected_values": "sperrung; rueckbau",
  "selected_count": 2
}

The object includes app and schema_version 2. text and lines provide a readable summary; levels describes the upper levels, items the selected entries including info, and multiple the multi-select setting. path and selected preserve the structured selection. level1_* and level2_* hold the key, label, value and configured title of the upper levels. selected_title holds the title of the lowest level. selected_keys, selected_labels and selected_values also contain text separated by a semicolon and a space, while selected_count holds the number of entries. Even with single selection, items and selected remain lists with one entry.

How do you map and process the selection?

Alongside the Journey block, the app includes the automation action Cascade Auswahl zuordnen. It reads the value of the Dynamic Cascade block from the journey submission and writes the selected entries into fields or entities you choose. It does not change the submission: the structured object with schema_version 2 stays in full, and the action only adds mapped copies.

The action runs in the journey automation with the trigger journey submission. If the selection should go to an Opportunity, run the existing Entity Mapping first, which creates the Opportunity and links it to the submission. Cascade Auswahl zuordnen follows, then optional mails or further actions. In the flow builder you choose the source block with block name and optional step number, target schema, target entity, mode, target attribute or field mapping, uniqueness fields, relation field, optional tags and, depending on the mode, the text source or the source per entry. The product page explains every setting.

ModeWhen to use it
Zusammengefügter Text (joined text)Readable summary in a text field, for mails and simple display
Multiselect-Attribut (multiselect)Filtering, reporting and conditions on fixed options; every key must match an option, otherwise nothing is written
Eine verknüpfte Entity pro Auswahl (one linked entity per selection)Each chosen device or product as its own record; with uniqueness fields as an upsert, so a repeated run creates no duplicates
Vorhandene Entities verknüpfen (link existing entities)Links to entities that already exist, such as products or devices, without duplicate links
Repeatable-Attribut (repeatable)List with _id and value directly on the target entity; every run replaces the whole list

An example: for wallbox registration, a grid operator loads manufacturers and models live from its device catalog, and the customer chooses two models. One action in the mode one linked entity per selection creates an entity per model on the Opportunity, unique by model key and submission ID. A second action writes the model names as joined text into a field on the Opportunity, which the confirmation mail inserts.

You then use the values in summaries, in conditions of follow-up automations, for example on a multiselect field, and in mail templates. For a repeatable field named feld, use {{#each feld}}{{value}}{{/each}} for all entries or feld.0.value for the first one; a plain {{feld}} does not work. For simple text fields, Entity Mapping of selected_keys, selected_labels or selected_values remains available.

Per run the action processes at most 50 selected entries and 200000 characters in the block value. On an error the step fails with a clear message in the automation log. Entities or relations already written are not rolled back; with uniqueness fields you can run the action again after the fix without duplicates. Installations before version 1.0.4 have no app role; so that the action can write entities, the app is uninstalled and installed again.

What happens when the data in the API changes?

If the API no longer returns a previously selected entry, the block removes it from the selection and shows “Die gewählte Option ist nicht mehr verfügbar.” (the selected option is no longer available). Changed labels, values or info texts are taken from the new list.

This mostly affects journeys that stay open for a while. Instead of silently submitting an outdated selection, the person in the journey sees that they need to choose again. If an entry disappears in an upper level, the levels below are cleared, because their entries depended on that value.

Direct or through the proxy?

Each level loads either directly from a public API or through epilot’s API proxy. If the source starts with https://, the block loads directly; if it starts with /, it goes through the proxy. Levels can mix both.

DirectProxy
Level sourcestarts with https://starts with /
App settingsnoneapi_host and secret
Suited forpublic HTTPS APIs without credentialsAPIs that require a bearer token
Requirementthe API sends Access-Control-Allow-Origin: *host and token are set in the app settings

In direct mode, epilot runs the block in a sandboxed iframe whose origin is null. The API therefore has to send Access-Control-Allow-Origin: *. In proxy mode, epilot sends the secret server-side as a bearer token, and the browser never receives it. Use a read-only key there, because anyone who opens the journey can request paths on the configured host through the proxy. A parameter name may appear only once in proxy sources.

The apps can query any API that delivers data in the Dynamic apps structure, or you can use the backend epilot-dynamic-backend that is included for free and then only need to fill the tables.

If the lists still live in a database or a legacy system today, a thin REST API in front of it is the clean way. How such an interface is built is described in the article epilot API: providing data from other systems via REST.

How can you try Dynamic Cascade?

A public demo journey lets you try Dynamic Cascade without signing in. The levels utility type, request and details load their entries live from epilot-dynamic-backend; all data is made up. The link and an overview of the demo data are in the demo section of the product page.

How do you get Dynamic Cascade?

Dynamic Cascade is in review by epilot and coming soon to the epilot Marketplace. The app costs €1,990 net per year per epilot organization. Updates are included, support is billed by time spent.

  1. Initial call: free and without obligation, 30 minutes on Microsoft Teams. We clarify which dependent lists should come from which API.
  2. Installation: once epilot has approved the app, you install it from the epilot Marketplace into your epilot organization.
  3. Setup: if needed, you enter api_host and secret for the proxy, add the block in the Journey Builder under “Installierte Apps” (installed apps) and configure Cascade Auswahl zuordnen as described above.

If the API the lists should come from does not exist yet, I build it as a custom interface. All apps are listed under epilot products, and you can pick a slot directly in the booking calendar.

Questions on this topic

What is the difference between Dynamic Cascade and Dynamic Dropdown?
Dynamic Dropdown is a single dropdown with one selected entry. Dynamic Cascade connects up to three fields that build on each other and allows several entries in the lowest level.
How does a level depend on the selection above?
Through placeholders in the source. {1} stands for the value selected in level 1, {2} for level 2, for example /tariffs?grid_area={1}&product_type={2}. When a selection changes, every level below is cleared and loaded again.
Can multi-select be turned off?
Yes. With the switch "Unterste Stufe: nur ein Eintrag" (lowest level: one entry only) in the Journey Builder, the lowest level becomes a single selection too. The stored format stays the same.
How do several selected entries get into my entities?
With the action Cascade Auswahl zuordnen in the journey automation. It writes the selection as joined text, as a multiselect, as one linked entity per selection with upsert through uniqueness fields, as links to existing entities without duplicate relations or as a repeatable list with _id and value. The structured selection stays unchanged in the submission. For simple text fields, Entity Mapping of selected_keys, selected_labels or selected_values remains available.
What happens when a selected entry disappears from the API?
The block removes it from the selection and shows "Die gewählte Option ist nicht mehr verfügbar." (the selected option is no longer available). If the lowest level is empty afterwards, the journey's required field check applies again.
What does Dynamic Cascade cost?
€1,990 net per year per epilot organization. Updates are included, support is billed by time spent. The app is in review by epilot and coming soon to the epilot Marketplace.

Does this fit your project?

In the free 30-minute intro call on Microsoft Teams we work out where epilot's standard ends for you. Afterwards you receive an individual quote.

Book a call

Published: . Last updated: .