How to take a flow variable and convert to entry's with individual line breaks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 12:48 PM
I am working with flow designer and I have a "flow variable" string that has this output:
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 01:14 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 01:36 PM
I have already tried replacing \ with "\n" and it errored out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 01:44 PM
Hi @Allen12 ,
Try as
javascript: "<varbiable> \n <varbiable>"
Screenshot for reference:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda