Hello,
Get the length of the list. Build a service that can do a recursive call, passing the whole list and the starting index. In this call, pull out the document to represent that position index. loop compare to all elements whose index is higher than yours. If you find a match, do nothing. If you do not find a match, append to a return list. Then do another recursive call passing the new higher index and the same doc list. You keep going until index >= length and then return the list. At the end the top most call will have a list whose elements are distinct and the oldest copies (lower index) will have been removed. I leave how you compare the elements up to you as this can work with many types. Good day.
Yemi Bedu.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB