Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Format Single/Multi Select

Turn a list of objects into JSON or CSV options for Single Select and Multi Select Grid columns.

How does the Format Single/Multi Select Step work?

Use Format Single/Multi Select to turn a list of objects into labels and stored values. For example, convert a list of CMS authors into readable names paired with author IDs, then use the result when configuring Grid options.

The Step returns a JSON object or CSV text. When it is the final Step, the Workflow returns the complete formatted result in one Grid output column.

How to Configure a Format Single/Multi Select Step

  1. Add Format Single/Multi Select from Code after the Step that produces your list.

  2. In Select JSON output, choose the source list. Test the source Step to make its output available for preview.

  3. Set Label field to the object field containing the display label, such as name.

  4. Set Value field to the field containing the stored value, such as id. Both field settings support variables.

  5. Choose JSON (label to value) or CSV (label,value per line) under Output format. JSON is the default.

  6. Review Options preview, then test the Step.

Format Single/Multi Select step with label and value fields and an options preview of three ground stations
Map label and value fields, then check the options preview.
Parameter
What to provide

Select JSON output

An array of objects from an earlier Step or Input.

Label field

The key to use for each option's display label.

Value field

The key to use for each option's stored value.

Output format

A JSON label-to-value object or CSV with one pair per line and no header.

Labels and values must be nonempty text or numbers. The Step trims surrounding whitespace, converts numbers to strings, and rejects duplicate labels or duplicate values.

Example

Given this source list:

Set Label field to name and Value field to id. JSON output is:

CSV output is:

The formatter prepares the data. To change a populated Grid data column into a dropdown, use the separate column conversion flow.

Last updated

Was this helpful?