Skip to content
epilot-berater.de

Blog

Dropdowns in epilot journeys: options live from your own API

Select fields in epilot journeys have static options. How the epilot app Dynamic Dropdown loads entries live from your API: format, proxy, output, security.

By Last updated: 8 min read

Select fields in epilot journeys have static options. That works as long as a list rarely changes. But when the options come from a system of your own and change there regularly, you end up maintaining the same list twice. This article shows where that limit lies and how the epilot app Dynamic Dropdown loads the entries live from your backend.

It was written by Marcel R. G. Berger. I have been a software developer and software architect for more than 20 years and work with epilot as an external consultant and developer for apps and customisations. The article is for the people responsible for journeys and IT at municipal utilities, grid operators and energy suppliers. Everything said here about the app’s behaviour comes from tests in the epilot sandbox on 4 November 2026.

Why are static select fields in epilot journeys often not enough?

Static select fields are not enough once the options are maintained in another system and change there. epilot’s built-in select fields only have static options, which are kept in the journey itself.

For a salutation or a yes or no question, that is exactly right. It is a different story when a list belongs in your backend, for example tariffs per region. Then the same list is maintained in two places, and every change in the backend has to be copied into the journey by hand.

Typical signs that a static select field is reaching its limit:

  • The options change regularly.
  • The data already lives in your backend or is reachable through an API.
  • An entry needs a business value next to its display text, for example a tariff code that epilot processes further.

When configuration in epilot is enough in general and when custom development comes in is covered in the article When is low-code in epilot no longer enough?.

What is Dynamic Dropdown?

Dynamic Dropdown is an epilot app with a Custom Journey Block: a dropdown field for epilot journeys whose entries are loaded live from your backend or API. When the list changes there, the journey shows the current state.

FeatureDynamic Dropdown
Typeepilot app with a Custom Journey Block
PublisherDigitalFreedom Global LLC
Entriesup to 1000 per field, live from your API
Fields per entrykey, label, value, optional info
Data sourcedirect (api_url) or through the proxy (api_path)
Statusin review by epilot, coming soon to the epilot Marketplace

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

What data does the API deliver for each entry?

Each entry consists of four fields: key, label, value and an optional info. By default the block expects a JSON array with exactly these fields.

  • key: the entry’s stable identifier
  • label: the display text in the list
  • value: the business value that epilot processes further
  • info: an optional description of the entry
[
  { "key": "basic", "label": "Basis-Tarif", "value": "TARIF_BASIC_2026", "info": "12 Monate Laufzeit" }
]

Entries with an info show an info icon in the list. Hovering over it opens a bubble with the details. The list stays short, and anyone who wants more sees the description right at the entry.

For long lists, the search in the field helps. Typing narrows the list to the entries whose value or label contains the typed fragment, ignoring case. That way you find a tariff by part of its tariff code, for example “BASIC”.

If your API returns a different shape, you map the list and the fields through the block arguments. How that works is shown in the API format section of the product page.

How current are the options in the journey?

The options are as current as your API. The block preloads the entries as soon as the journey renders it and reloads them when the dropdown is opened, at most every 5 seconds.

Preloading means the list is already there the first time it opens. Refreshing on open means a change in the backend also reaches a journey that has been open for a while. The 5 second limit keeps repeated opening and closing from flooding your API with requests.

The list holds up to 1000 entries and scrolls.

Direct or through the proxy: how does the journey get the data?

Public APIs without credentials are called directly, APIs that need a key go through epilot’s proxy. The choice depends only on whether your API requires a key.

DirectProxy
Block argumentapi_urlapi_path
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 stored 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 the Access-Control-Allow-Origin header with the value *. Allowing individual domains is not enough. The MDN reference for Access-Control-Allow-Origin explains the header and the * wildcard.

In proxy mode, you enter the host (api_host) and the token (secret) in the app settings. The block then only requests a path relative to that host. epilot sends the secret server-side as a bearer token, and the credentials never reach the browser.

If the data still sits in a database or a legacy system without a suitable interface, a lean REST API of your own in front of it is the clean route. How such an interface is built is described in the article epilot API: providing data from other systems via REST.

What ends up in epilot after submission?

On submit, epilot stores the selection in the submission as a structured object under the block name, with the fields key, label, value and info. So epilot holds not only the display text, but also the stable identifier and the business value.

In a test in the epilot sandbox on 4 November 2026 with a public test API, the selection was stored in the submission under the block name “Dynamic Dropdown” as an object with exactly these four fields. With the sample data from above, the stored selection looks like this:

{ "key": "basic", "label": "Basis-Tarif", "value": "TARIF_BASIC_2026", "info": "12 Monate Laufzeit" }

You carry the selection into your entities like any other journey field. In the journey’s automation settings (“Journey Automatisierungseinstellungen”), the block “Dynamic Dropdown” appears under “Zuordbare Elemente” (mappable elements). When you add it to an entity action, for example for an opportunity, key, label, value and info are offered individually as sources, each with its own target attribute and the option “Als eindeutiges Merkmal nutzen” (use as unique identifier). That way the tariff code from value, for example, lands directly in the matching attribute. This was also verified in the epilot sandbox on 4 November 2026.

What happens if an option disappears?

If the API no longer delivers a previously selected entry, the field shows a notice. The text reads “Die gewählte Option ist nicht mehr verfügbar.” (the selected option is no longer available).

This mainly affects journeys that stay open while the list changes in the backend. Instead of silently keeping an outdated selection, the person filling in the journey sees that they need to choose again.

Does the field match the journey design?

Yes. The field automatically follows the journey theme, meaning colours, font and corner radius. It needs no styling of its own.

You choose the width per block in the Journey Builder: full width, three quarters, half or one third. On narrow screens the field always takes the full width.

What should you consider for security?

Use a read-only API key in proxy mode. Anyone who opens the journey can call paths on the configured host through the proxy.

  • The secret stays server-side. The proxy sends it as a bearer token, and the browser never receives it.
  • The key should only be allowed to read, and the host should only offer the data the journey needs.
  • In direct mode the API is publicly reachable, because it sends Access-Control-Allow-Origin: *. Only serve data there that anyone may see.

More notes are in the security section of the product page.

How do you get Dynamic Dropdown?

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

  1. Intro call: free and non-binding, 30 minutes on Microsoft Teams. We clarify which 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: where needed, you enter api_host and secret for the proxy and add the block in the Journey Builder under “Installierte Apps” (installed apps).

If the API the list should come from does not exist yet, I build it as an individual interface. How your other systems work together with epilot is described in the article Connecting ERP, billing and grid systems to epilot. All apps are listed under epilot products, further answers are in the FAQ on the home page, and you can pick a slot directly in the booking calendar.

Questions on this topic

Why is the built-in select field in epilot journeys not enough?
epilot's built-in select fields have static options that are kept in the journey. When the list changes in your backend, the journey shows the old state until someone updates it. Dynamic Dropdown loads the options live from your API instead.
How current are the entries in Dynamic Dropdown?
The block preloads the entries as soon as the journey renders it and reloads them when the dropdown is opened, at most every 5 seconds.
Can I connect an API that requires a key?
Yes, through proxy mode. You enter api_host and secret in the app settings, and the block uses the api_path argument. epilot sends the secret server-side as a bearer token; the browser never receives it. Use a read-only key.
Why does the list not load in direct mode?
Usually the CORS header is missing. The block runs in a sandboxed iframe with origin null, so the API has to send Access-Control-Allow-Origin: *. Allowing individual domains is not enough.
What does epilot store when the journey is submitted?
The selection is stored in the submission as an object under the block name, with the fields key, label, value and info. In entity mapping, the four fields can be mapped individually to attributes of an entity.
Is Dynamic Dropdown available in the epilot Marketplace?
Not yet. The app is in review by epilot and coming soon to the epilot Marketplace. Once approved, you install it from there into your epilot organization. It costs €1,290 net per year per epilot organization.

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: .