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
Add Format Single/Multi Select from Code after the Step that produces your list.
In Select JSON output, choose the source list. Test the source Step to make its output available for preview.
Set Label field to the object field containing the display label, such as
name.Set Value field to the field containing the stored value, such as
id. Both field settings support variables.Choose JSON (label to value) or CSV (label,value per line) under Output format. JSON is the default.
Review Options preview, then test the Step.

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?