Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<String, Relatie__c> uniqueHuish = new map<String, Relatie__c>();
- for(Relatie__c rc: rcList) {
- if(!uniqueHuish.containsKey(rc.Huishouden__c)) {
- uniqueHuish.put(rc.Huishouden__c,rc);
- }
- }
- Relatie__c[] uniqueHuishList = uniqueHuish.values();
- 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