How to take a flow variable and convert to entry's with individual line breaks

Allen12
Tera Guru

I am working with flow designer and I have a "flow variable" string that has this output: 

Allen12_0-1710791025565.png

How do I break it up so each "\" starts a new line.  I tried "For each", but it doesn't recognize the output as an array.

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

I think there is already \n which represent a new line. storing in a text field should set new line.

If you want to split it, you can split the output using split('\n').


Please mark this response as correct or helpful if it assisted you with your question.

Allen12
Tera Guru

I have already tried replacing \ with "\n" and it errored out

Sumanth16
Kilo Patron

Hi @Allen12 ,

 

Try as

javascript&colon; "<varbiable> \n <varbiable>"

Screenshot for reference:

Sumanth16_0-1710794672777.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda