runger Remove duplicate items from List

/ Published in: Other
Save to your folder(s)

Copy this code and paste it in your HTML
  1. Set<sobject> myset = new Set<sobject>();
  2. List<sobject> result = new List<sobject>();
  3. myset.addAll(originalList);
  4. result.addAll(myset);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.