G'day all from Sydney, Australia.
I'm working on a solution where I have to use Workflow to export a bunch of metadata into a CSV file. I'm using a For Each Value to recurse each line, but my problem is that there are multiple entries that need to recurse at the same time. How do I recurse the 2nd item (or 3rd, 4th, etc.) without having them duplicate?
For example, let's say I have columns labelled NAME, ADDRESS, PHONE, EMAIL and the following sample data:
"Paul Snedden", "Sydney", "+61123456789, +61987654321", "email@email.com, anotheremail@email.com"
Side note, sorry if that's not the best way to show my metadata...it's the best I could come up with :)
As you can see, I have two PHONE entries and two EMAIL entries for the one person. Thus, I'm using a For Each Value (Current Value - PHONE) to export the first entry as:
"Paul Snedden", "Sydney", "+61123456789", "email@email.com"
That's perfect, and as required.
The second entry in my export file, however, comes out as:
"Paul Snedden", "Sydney", "+61987654321, "email@email.com"
The PHONE entry recurses correctly, but the EMAIL one doesn't because I can't determine a method of recursing the EMAIL entry inside the PHONE entry.
If I use another For Each Value using EMAIL, then I get the following:
"Paul Snedden", "Sydney", "+61123456789", "email@email.com"
"Paul Snedden", "Sydney", "+61123456789", "anotheremail@email.com"
"Paul Snedden", "Sydney", "+61987654321", "email@email.com"
"Paul Snedden", "Sydney", "+61987654321", "anotheremail@email.com"
Thus, embedding a For Each Value inside a For Each Value doesn't help.
Any suggestions? I hope this makes sense :)