PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Length

Returns the number of elements in a list.

The Length action (List) counts the elements in a list. Use it to check whether a list is empty (0), to compute the index of the last element (length โˆ’ 1), or to report how many records were processed.

Add the action

In the Process Designer toolbox, open List and pick Length (or type Length in the search box โ€” make sure you pick the one in the List folder, not the String one).

The List Length action properties: Input a list of elements and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input a list of elementsInputList of any typeYesThe list to count.
ResultOutputIntegerYesThe number of elements.

Example

Input a list of elementsResult
[1,"a",{"x":1}]3
[null,null]2 (empty elements are counted)
[]0

Good to know

  • Every element counts, including duplicates and empty (null) values.
  • An empty list, or a list variable that has no value, returns 0.

On this page