I have two collections of data that I get from a query list action.
The first is a list of names:
Collection 1
person1
person2
person3
The second is a list of dates that the people in the first list will be on vacation for:
Collection 2
11-05-19
11-16-19
12-15-19
I want my list to look like this:
person1 - 11-05-19
person2 - 11-16-19
person3 - 12-15-19
but I cant seem to find a way to do that in Nintex.
In a programming language, all I would need to do is loop through one list and concatenate the current index items from both lists:
for(int i=0; i<collection1.size; i++){
merged_list[i] = collection1[i] + collection2[i]
i++;
}
Any suggestions?
Solved! Go to Solution.
Hi,
Its just a matter of retrieving the same index from both collections and then merging them.
The workflow would look like this.
I have attached a sample workflow which merges the entries from two collections and logs them to the history list. You can ignore the start of the workflow as I am just constructing my test collections and then counting how many items there are. As you can see the workflow design is just like the code in your post.
Thanks @SimonMuntz! I was close but could'nt get past the last part of the issue. I appreciate the step by step, very helpful and worked like a charm.
@SimonMuntz ....I won't recomment loop action because of Safe Looping.
@jraffe ....Are collection 1 and 2 coming from same list?
If Yes then:
If No then: