> 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/data-conversion-and-formatting.md). Agents can also search and read this documentation through its [MCP server](https://docs.avonnicomponents.com/~gitbook/mcp).

# Work with Text and Numbers

Avonni Flow actions for text and number collections: get one value, join values into one text, format text, and turn text into picklist options or steps.

These actions take a text or number collection, such as the names of the deals a user picked, and return what the next element needs: one value, one line of text, formatted values, or options for a screen component.

{% hint style="info" %}
New to Avonni actions? Start with [Use an Avonni Action in a Screen Flow](https://docs.avonnicomponents.com/flow/actions/use-an-action-in-a-screen-flow.md), or find the right action in [Which Avonni Action Do I Need?](https://docs.avonnicomponents.com/flow/actions/which-action-do-i-need.md).
{% endhint %}

## Get one value

Read the first, the last or a given value of a collection.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Get the First, Last or Nth Value of a Text Collection</strong></td><td>Use the Text Collection Get Value action to pick the first, last or Nth value of a text collection in a screen flow, such as the next deal to close.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FBKEucnwQmVeADqCQToBd%2Fcover-text-collection-get-value.png?alt=media">cover-text-collection-get-value.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-get-value.md">Get the First, Last or Nth Value of a Text Collection</a></td></tr><tr><td><strong>Get the First, Last or Nth Value of a Number Collection</strong></td><td>Use the Number Collection Get Value action to pick the first, last or Nth number of a number collection in a screen flow, such as the largest open deal amount.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2F5NHeJF7UyURURV2Nvrrb%2Fcover-number-collection-get-value.png?alt=media">cover-number-collection-get-value.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/number-collection-get-value.md">Get the First, Last or Nth Value of a Number Collection</a></td></tr></tbody></table>

## Join and format text

Combine values into one text, or clean up their case and spacing.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Join a Text Collection into One Text Value</strong></td><td>Use the Join Text Collection action to turn a text collection into one line of text in a screen flow, such as a list of open deal names on a screen.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FZiuY4aagfoflEO6iEQyd%2Fcover-join-text-collection.png?alt=media">cover-join-text-collection.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/join-text-collection.md">Join a Text Collection into One Text Value</a></td></tr><tr><td><strong>Format Every Value in a Text Collection</strong></td><td>Use the Format Text Collection action to change the case, trim or escape every value of a text collection in a flow, such as stage codes for an integration.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FCYTbUoHsgBxxLTKvxvjR%2Fcover-format-text-collection.png?alt=media">cover-format-text-collection.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/format-text-collection.md">Format Every Value in a Text Collection</a></td></tr><tr><td><strong>Format a Text Field Across a Record Collection</strong></td><td>Use the Format Text SObject Collection action to change the case, trim or escape a text field on every record of a collection, such as deal names.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FIqbZjkRQPVduMSGzsN7U%2Fcover-format-text-in-sobject-collection.png?alt=media">cover-format-text-in-sobject-collection.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/format-text-in-sobject-collection.md">Format a Text Field Across a Record Collection</a></td></tr></tbody></table>

## Turn text into options and steps

Fill a picklist, a dual listbox or a progress indicator from a text collection.

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Fill a Combobox from a Text Collection in a Screen Flow</strong></td><td>Use the Text Collection to Combobox Options action to turn a list of text values into Avonni Combobox options, such as loss reasons on a deal screen.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FLxqC7dxcdJ60Vy04FRfn%2Fcover-text-collection-to-combobox-options.png?alt=media">cover-text-collection-to-combobox-options.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-combobox-options.md">Fill a Combobox from a Text Collection in a Screen Flow</a></td></tr><tr><td><strong>Fill a Dual Listbox from a Text Collection in a Screen Flow</strong></td><td>Use the Text Collection to Dual Listbox Options action to turn a list of text values into Avonni Dual Listbox options, such as the product lines of a deal.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FxWYXO3MO8BJgaawT1Cep%2Fcover-text-collection-to-dual-listbox-options.png?alt=media">cover-text-collection-to-dual-listbox-options.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-dual-listbox-options.md">Fill a Dual Listbox from a Text Collection in a Screen Flow</a></td></tr><tr><td><strong>Fill a Progress Indicator from a Text Collection in a Screen Flow</strong></td><td>Use the Text Collection to Progress Indicator Steps action to turn a list of names into Avonni Progress Indicator steps you change without editing the flow.</td><td><a href="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FVBqEaEmVWhQtON4SbksS%2Fcover-text-collection-to-progress-indicator-steps.png?alt=media">cover-text-collection-to-progress-indicator-steps.png</a></td><td><a href="https://docs.avonnicomponents.com/flow/actions/data-conversion-and-formatting/text-collection-to-progress-indicator-steps.md">Fill a Progress Indicator from a Text Collection in a Screen Flow</a></td></tr></tbody></table>


---

# 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/data-conversion-and-formatting.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.
