In my current situation, I need to take several documents and combine them together with versioning. For instance, I have 5 documents in the repository with the document names "12345", "12345 (2)", "12345 (3)", "12345 (4)", "12345 (5)". In my case, the 12345 indicates PO number so all of the PO Numbers metadata are set to 12345. I want to combine these documents into 1 document with document name "12345" being version 1, document name "12345 (2)", being version 2, etc.
So in WF, I have found all entries, obtained the PO numbers and now I want to iterate through the list and get rid of all PO numbers except for the first one. For instance, my next set of documents are "67890", "67890 (2)", etc.....So I want this task to find "12345" and "67890" but get rid of the (2), (3)....
I was using a track token values and then saying for each value do something.......but it was taking my 6 documents for 12345 and saying I had 1 value for each of them.....how do I combine these into a "list" and then get rid of the duplicates? Hope this makes sense! Thanks!