> 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-progress-indicator-step-collection.md).

# New Progress Indicator Step Collection

Build the steps of the Avonni Progress Indicator once in a flow action, with icons, sub-steps and action buttons, and reuse them on every screen.

## Overview

This action builds a collection of steps for the [Avonni Progress Indicator](https://docs.avonnicomponents.com/flow/flow-components/progress-indicator.md) before the screen. Use it when several screens show the same steps, or when a Decision picks one set of steps or another. For steps used on one screen only, typing them in the Progress Indicator with the **Manual** data source is simpler.

> **Example:** A five-screen onboarding flow (Account details, Contacts, Products, Review, Submit) shows the same Progress Indicator on every screen. The steps are defined once here, and a renamed step changes on all five screens.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F7kLv5cAWvKi9e79F8NRl%2Fprogress-indicator-creating-a-universal-dynamic-progress-step-collection-result.png?alt=media" alt="Horizontal progress indicator built from the action output, five steps"><figcaption><p>A Progress Indicator built from this action's output.</p></figcaption></figure>

***

## Input

**Steps** (required) holds one item per step. Each item has these fields:

| Field                      | What to set                                                                                                                                                        |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Label**                  | The text shown for the step. Accepts a flow resource.                                                                                                              |
| **Value**                  | Required, unique. What **Current Step**, **Completed Steps** and **Error Steps** match against, and what **Clicked Step Value** returns.                           |
| **Content**                | Rich text tied to the step.                                                                                                                                        |
| **Icon Name**              | A Lightning Design System icon, such as `standard:account`.                                                                                                        |
| **Sub Steps**              | Steps nested under this one, each with a **Label** and a **Value**. Shown by the vertical types.                                                                   |
| **Actions**                | Buttons shown at the right of the step, each with a **Label**, a **Name**, an **Icon Name** and a **Disabled** switch. Supported only by the vertical orientation. |
| **Visible Action Buttons** | Appears once the step has **Actions**. The number of action buttons shown on the step.                                                                             |

The flow fails with "You provided an empty value for the progress indicator steps" when **Steps** has no value.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F8CMghTYJwYM7U5Tf0ExN%2Fprogress-indicator-new-progress-indicator-step-collection-panel.png?alt=media" alt="One step of the action open, showing its label, value, content, icon, sub-steps, actions and visible action buttons fields"><figcaption><p>Every field of a step, with one action button added.</p></figcaption></figure>

{% hint style="info" %}
The step type also has **Disabled** and **Hidden** fields, but this action does not show them. To disable or hide a step, type the steps in the Progress Indicator with the **Manual** data source, where each step has both switches.
{% endhint %}

## Output

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

What the Progress Indicator returns when a user clicks one of these action buttons is covered in [Sub-steps and step actions](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/sub-steps-and-step-actions.md).

***

## Example

{% stepper %}
{% step %}

### Create the variable

Create `varOnboardingSteps`: **Data Type** **Apex-Defined**, **Apex Class** `avcmpbuilder__ProgressIndicatorStep`, **Allow multiple values (collection)** selected.
{% endstep %}

{% step %}

### Add the action

Add an Action element before the first screen and select **New Progress Indicator Step Collection**. In **Steps**, add `Account details` (value `account`), `Contacts` (`contacts`), `Products` (`products`), `Review` (`review`) and `Submit` (`submit`).
{% endstep %}

{% step %}

### Store the output

Expand **View Output Resources**, select **Manually assign variables (advanced)** and store the output in `varOnboardingSteps`.
{% endstep %}

{% step %}

### Use it on every screen

On each screen, set the Progress Indicator **Data Source** to **Variable**, select `varOnboardingSteps`, and set **Current Step** to that screen's value.
{% endstep %}
{% endstepper %}

[Creating a Universal Dynamic Progress Step Collection](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/creating-a-universal-dynamic-progress-step-collection.md) walks through the whole flow. [Sub-steps and step actions](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/sub-steps-and-step-actions.md) uses **Sub Steps** and **Actions** on a vertical indicator.

## Related

* [Text Collection to Progress Indicator Steps](https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-progress-indicator-steps.md): steps from a list of names, without icons or sub-steps.
* [Steps from a picklist](https://docs.avonnicomponents.com/flow/tutorials/components/progress-indicator/steps-from-a-picklist.md): steps read from a Salesforce picklist, with no action at all.


---

# 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-progress-indicator-step-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.
