Having trouble removing duplicates from an array

I am trying to remove duplicates from an array. I am trying to use the union() function to find the unique names in an array and then get the rest of the information for those unique names into the array. For the union() it only returns the unique names, union(ri!name,ri!name) returns the list of unique ri!names. How do I get the rest of the information into an array....

OriginalPostID-120015

OriginalPostID-120015

  Discussion posts and replies are publicly visible