Roboteka
Roboteka · Robots · Array size / element count

Array size / element count

The "Array size" robot counts the number of elements in an array of values in Bitrix24 (Alaio) business processes and robots. It takes a multiple-value field or another robot output; empty strings are ignored by default, and a flag enables counting them. It returns the element count and an Array is empty Y/N flag for conditional branching.

The robot determines how many values an array contains and is handy for checking multiple-value fields and other robot outputs. The input is a multiple-value field (such as contact phones, deal products, lead tags) or an array collected by a previous step; the Count empty strings flag controls whether empty elements are included (they are dropped by default). Typical use cases: verify a contact has at least one phone before starting a call campaign; run a special branch when a deal has more than three products; hold the process while a multiple-value field is empty. It returns the element count and an Array is empty Y/N flag — compare them in the condition of the next step of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Array of values string yes
Count empty strings (Y/N, default N) string

What does the robot return?

Parameter Type
Element count int
Array is empty (Y/N) string

Scenario: completeness check before calling

  1. A contact enters the Qualification stage
  2. The robot counts the number of phones in the contact multiple-value field
  3. When the count is 0 the process assigns a task to fill in the phone, otherwise it starts the call

Related robots

Related articles