Roboteka
Roboteka · Robots · Remove duplicates from array

Remove duplicates from array

The "Remove duplicates from array" robot keeps only unique elements in an array of values in Bitrix24 (Alaio) business processes and robots. It takes a multiple-value field or another robot output; comparison is case-insensitive by default and the order of first occurrences is preserved. It returns the array without duplicates, the unique element count, and the number of duplicates removed.

The robot removes repeated values from an array and keeps the first occurrence of each element in the original order. The input is a multiple-value field (such as tags, e-mails, or a string-split output) and the Case-sensitive flag: by default London and london count as one value, with Y they are different. Typical use cases: clean a mailing list of repeated e-mails before sending; count how many distinct sources have accumulated in a multiple-value field; compare the counts before and after to catch duplicates. It returns the array without duplicates, the unique element count, and the number of duplicates removed — use them in the next steps of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Array of values string yes
Case-sensitive (Y/N, default N) string

What does the robot return?

Parameter Type
Array without duplicates string
Unique element count int
Duplicates removed int

Scenario: a mailing without repeated letters

  1. A deal has accumulated a list of e-mail addresses with duplicates
  2. The robot removes the repeats from the address array
  3. The mailing loop runs over the deduplicated array — each address gets exactly one letter

Related robots