Guest User

Untitled

a guest
May 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Map<String, Relatie__c> uniqueHuish = new map<String, Relatie__c>();
  2. for(Relatie__c rc: rcList) {
  3. if(!uniqueHuish.containsKey(rc.Huishouden__c)) {
  4. uniqueHuish.put(rc.Huishouden__c,rc);
  5. }
  6. }
  7. Relatie__c[] uniqueHuishList = uniqueHuish.values();
  8.  
  9. DEBUG|uniqueHuishList (Relatie__c:{Contactpersoon__c=0014E00000PD14ABCD, Account__c=0032E00000Vag7ABCD, Huishouden__c=a133E000000HyABCD, Relatietype__c=Lid, Id=a009E000002YaCABCD})
Add Comment
Please, Sign In to add comment