I'm writing a process that takes as input a multiline string. I need to chop this string up via newlines and iterate through each one but I can't work out how to split a string based on newlines and the TEO Reference Guide is suitably vague on what special characters (if any) one can split a string on .
This process is intended to be initiated directly via TEOWebConsole at this stage else I would implement this in CCP instead.
You can use the regex ^.*$
and then feed in the string and then loop through it, trim off the ends and go from there.
I have a TAP of some commonly used functions that I use in many of my automations. I call it the Automation Function Tools. I have uploaded the zipped tap to here. Download it, unzip, and import.
It has a function called convert multi-line to single-line string. While that might not be exactly what you are doing, you can pull the pieces out for the breaking at newline and be ok I think.
Here's a screenshot of what I mean: