Skip to content

Accumulation Get Item

Retrieves a single item from an accumulation by its index. If the index is valid, it returns the element at that position; if it is invalid, it returns a null value.
Preview

Usage

Use this node when you need to access a specific element from a previously built accumulation (e.g., after collecting items across steps). Typical workflow: build or receive an accumulation, then use this node to fetch the element at a given zero-based index for downstream processing.

Inputs

FieldRequiredTypeDescriptionExample
accumulationTrueACCUMULATIONThe accumulation object that holds a sequence of items collected from prior steps.An accumulation produced by 'Accumulate' or 'List to Accumulation'
indexTrueINTZero-based index of the item to retrieve. Negative indices select from the end (e.g., -1 for the last item).0

Outputs

FieldTypeDescriptionExample
itemWILDCARDThe item at the specified index within the accumulation. Type depends on what was stored in the accumulation.42

Important Notes

  • Indexing: Uses zero-based indexing; negative indices are allowed to access from the end.
  • Out-of-range handling: If the index is out of bounds or the accumulation is invalid, the output will be null.
  • Type variability: The output type is dynamic and matches the type of the item stored in the accumulation.

Troubleshooting

  • Output is null: The index may be out of range or the accumulation is empty. Verify the accumulation length and adjust the index.
  • Unexpected item type: Accumulations can contain mixed types. Ensure the downstream node can accept the retrieved item's type.
  • Wrong element returned: Remember indexing is zero-based; confirm the intended position and adjust the index accordingly.