Passar para o conteúdo principal
Todas as coleçõesAutomacoesFerramentas
Dividir cadeia de caracteres em elementos de uma seção de linha (array)
Dividir cadeia de caracteres em elementos de uma seção de linha (array)
Manuel Bernal avatar
Escrito por Manuel Bernal
Atualizado há mais de uma semana

Como funciona esta ferramenta?

Como outras ferramentas do Albato, ele é adicionado entre as etapas de uma automação. Para fazer isso, clique no "+" e selecione a ferramenta na lista.

1.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.

2.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 contains these elements.

We will show you how this tool works below:

we receive a string with multiple values

string = “name1;name2;name3”;

we display the result as three strings in one section.

[ {result: ‘name1’}, {result: ‘name2’}, {result: ‘name3’}, ]

How the result of the tool will look:

3.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.

4.png

Respondeu à sua pergunta?