> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/actions/ui-and-navigation/new-combobox-option-collection.md).

# New Combobox Option Collection

Build a reusable collection of options for the Avonni Combobox in a flow action, with labels, values, secondary text and avatars, before the screen.

## Overview

This action builds a collection of options for the [Avonni Combobox](https://docs.avonnicomponents.com/flow/flow-components/combobox.md) before the screen. Use it when several Combobox components or screens share the same list, or when a Decision picks one list or another. For a list used once, typing the options in the Combobox with the **Manual** data source is simpler.

> **Example:** Urgent cases get routing options that include Escalations, other cases get a list without it. Two actions, one per Decision branch, store their output in the same variable, and the Combobox reads that variable.

***

## Input

**Combobox Options** (required) holds one item per option. Each item has these fields:

| Field                         | What to set                                                                            |
| ----------------------------- | -------------------------------------------------------------------------------------- |
| **Label**                     | The text shown for the option. Accepts a flow resource.                                |
| **Value**                     | Required, unique. The value stored when the option is picked. Accepts a flow resource. |
| **Secondary Text**            | Advanced. A second line under the label.                                               |
| **Avatar Variant**            | Advanced. **Circle** or **Square** (default: **Square**).                              |
| **Avatar Initials**           | Advanced. Initials shown in the avatar, such as `T2`.                                  |
| **Avatar Fallback Icon Name** | Advanced. A Lightning Design System icon, such as `standard:queue`.                    |
| **Avatar Src**                | Advanced. The URL of an image for the avatar.                                          |

The flow fails with "You provided an empty value for the combobox options" when **Combobox Options** has no value.

## Output

A collection of combobox options (Apex-defined type `ComboboxOption`). Store it in a collection variable of that type, then select the variable in the Combobox with **Data Source** set to **Variable**. No data mapping is needed.

***

## Example

1. Add an Action element before the screen and select **New Combobox Option Collection**.
2. In **Combobox Options**, add `Tier 1 Support` (value `tier1`) and `Tier 2 Support` (value `tier2`), each with a **Secondary Text** and an **Avatar Fallback Icon Name**.
3. Store the output in a new variable: Data Type **Apex-Defined**, Apex class `ComboboxOption`, **Allow multiple values (collection)** selected.
4. On the screen, set the Combobox **Data Source** to **Variable** and select that variable.

This action has no **Disabled** field: to grey out an option, use the **Manual** data source. [Build Combobox Options](https://docs.avonnicomponents.com/flow/tutorials/components/combobox/build-combobox-options.md) compares the ways to fill a Combobox.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/flow/actions/ui-and-navigation/new-combobox-option-collection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
