List to Accumulation¶
Converts an input into an accumulation structure used by Salt list-logic nodes. If the input is a Python list, it is wrapped directly; if it is a single value, it is wrapped as a one-element accumulation.

Usage¶
Use this node when you need to feed a standard list (or a single value) into nodes that operate on the Accumulation type (e.g., Head, Tail, Get Item, Set Item, Accumulate). It is typically placed just before list-processing nodes to standardize the data structure.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| list | True | WILDCARD | The input to convert. If this is a list, its items become the accumulation contents. If this is a single value (any type), it becomes a single-item accumulation. | ["a", "b", "c"] |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| accumulation | ACCUMULATION | An accumulation object containing the input items in order, suitable for all Accumulation-based list nodes. | {"accum": ["a", "b", "c"]} |
Important Notes¶
- List handling: If the input is already a list, its elements are used as-is; the node does not flatten nested lists.
- Single value handling: If the input is a single value (not a list), it is wrapped into a one-item accumulation.
- Type flexibility: Accepts any item types (strings, numbers, images, custom objects); mixed-type lists are supported.
- Error fallback: On errors, the node returns an empty accumulation.
- Pairing: Designed to interoperate with Accumulation nodes like Accumulation Head, Tail, Get/Set Item, and Accumulation to List.
Troubleshooting¶
- Empty result: If you receive an empty accumulation, ensure the input is provided and valid.
- Unexpected nesting: If you see nested lists inside the accumulation, verify that your input isn't already a list of lists; the node does not flatten.
- Wrong downstream type: If downstream nodes complain about types, confirm you converted raw lists to Accumulation with this node first.
- Single value wrapped: If you expected multiple items but got only one, check that your input is a list rather than a single value.