I'm pretty sure I'm doing something basic incorrectly. Here's the problem
I have a flow which brings in some plain text from a file and splits it into an array. It then builds a string from the array and attaches that to an email as a file. I've kept it simple right now, there'll be more trickery later, but I can't get this simple version to output the array values correctly using 'apply to each'.
Split the content on SOL
Output two ways, one is the text as assembled by apply to each, which consists of three lines exactly the same. The first line is array
Solved! Go to Solution.
The crappy editor dropped two images
Shows apply to each pulling in the entire array as each line, rather than each item. Still knows it's three so it is reading the array as three lines. Note also it's got the array delimiters pulled in.
Yes, bang on. Where is it written!?
I had assumed that's what the apply to each was looking for, each item in the array, not each array? It's a bit counter intuitive that it iterates the array not the items. And even then, why would it repeat for each item!