Split string into elements of a row section (array)
How the tool works (not for users)
![](https://storage.crisp.chat/users/helpdesk/website/d71b68b4c7a6c80/captura-de-tela-2023-04-28-as-_tm533d.png)
Instructions for CIS
How does this tool work?
Like other Albato tools, it is added between steps of an automation. To do this, click on the "+" and select the tool from the list.
![](https://storage.crisp.chat/users/helpdesk/website/d71b68b4c7a6c80/unnamed-7_wkv1t8.png)
The tool has two required fields:
String to split - specify a field from the previous steps to split.
Delimiter - specify a symbol to divide the string into elements. Any symbol/set of symbols can be used as a delimiter.
![](https://storage.crisp.chat/users/helpdesk/website/d71b68b4c7a6c80/unnamed-8_qaak6k.png)
As a result of the tool, a user receives a row section - "Split elements" - in the next step of the automation.
This section has one field that will contain these elements.
Below is a visualization of the tool's operation:
(We will show you how this tool works below)
string = “name1;name2;name3”; // we get a string with several elements;
[
{result: ‘name1’},
{result: ‘name2’},
{result: ‘name3’},
]
// we display the result as three strings in one section.
How the result of the tool will look:
![](https://storage.crisp.chat/users/helpdesk/website/d71b68b4c7a6c80/unnamed-12_e1l65n.png)
All ";" symbols will divide the incoming string into the elements of a row section.
In the example of spreadsheets, the result will be either three lines in one cell or three rows separately.
![](https://storage.crisp.chat/users/helpdesk/website/d71b68b4c7a6c80/unnamed-10_1m0bvp0.png)
Updated on: 04/05/2023
Thank you!