71
Views
3
Comments
Text to list of text base on lines
Question

Hello all,

How can I convert a text into a list of text? How to read every single line of a text and turning it into a record of a list.

For example, the text :

a

b



d

convert the text above to a list :

1element : a

2element : b

3element : (empty)

4element : (empty) 

5element : d


Thank you guys :')

2022-05-20 11-52-14
Alexander Avila

Hi Raven

You can try this server action

2024-12-02 12-15-17
Aravind EONE

Hey raven ransford,

Use string_split with delimeter as ""

It will give you as expected.


2023-05-08 05-34-05
Piyali Saha

Hi Raven,

As suggested by others you can use string_split with delimeter as "" from Text extension in outsystems as follows:

Hereby, I am attaching the oml for your reference on how to implement the scenario.

TexttoList.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.