Roboteka
Roboteka · Robots · Split string by delimiter

Split string by delimiter

The Split String by Delimiter robot divides a source string into parts by a given delimiter in Bitrix24 (Alaio) business processes and robots. It takes a text and a character or sequence to split on. It returns a multiple value String parts with the resulting elements and an integer Parts count for the next steps of the process.

The robot splits a string into separate elements by a specified delimiter — the equivalent of the explode function. It accepts a source string and a delimiter (comma, semicolon, space, or any sequence of characters). The output is a multiple field String parts with the array of resulting fragments and an integer Parts count. When to use it: break apart a list of IDs, e-mails, or phone numbers separated by commas so you can loop over them; pull individual values out of a string assembled by another robot; count the number of items in a list before branching. If the delimiter is empty, the whole string is returned as a single element and the parts count equals 1. Use the results in subsequent business process actions — for example, in a loop over the multiple field.

What input parameters does the robot accept?

Parameter Type Required? Default
Source string string yes
Delimiter string yes

What does the robot return?

Parameter Type
String parts string
Parts count int

Scenario: parsing a list of e-mails from a single field

  1. A deal has a field filled with addresses separated by commas
  2. The robot splits the string by the delimiter ","
  3. As a result String parts holds each address separately and Parts count equals the number of addresses for the mailing loop

Related robots

Related articles