If I'm looping through steps and I want to merge two lists into a separate list name that iterates based on %LoopIndex%, how would I do that? I want a separate merged list to be output for each iteration for easy merging into a complete list. I've tried adding lists instead, but it results in all data for the list added being added to a single row within the merged table. I'd like to avoid manipulating individual rows of data since they're already properly formatted.
Example of problem:
Run 1: %List_A% merges with %List_B% into %List_C%
Run 2: %List_A% merges with %List_B% into %List_C%, not merging with %List_C% from Run 1 , but overwriting data from List C in the first run. Again, adding to a list results in all data from a list being placed into a single row of the complete list.
What I'd like to do:
Run 1: %List_A% merges with %List_B% into %List_C[LoopIndex]% (List_C1)
Merge %List_C[LoopIndex]% into %List_Complete%
Run 2: %List_A% merges with %List_B% into %List_C[LoopIndex]% (List_C2)
Merge %List_C[LoopIndex]% into %List_Complete%
Run 3: %List_A% merges with %List_B% into %List_C[LoopIndex]% (List_C3)
Merge %List_C[LoopIndex]% into %List_Complete%
If the variable was numerical, it would be easy.
The issue is that merging List A + B into List C doesn't merge with a pre-existing List C, it overwrites it. If merging two lists into another list merged rather than overwrote, I wouldn't have an issue.
I appreciate any advice!