Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<Id,cxsrec__cxsCandidate__c> candidateMap = new Map<Id,cxsrec__cxsCandidate__c> ([SELECT Id FROM cxsrec__cxsCandidate__c WHERE cxsrec__E_mail_address__c LIKE '%anontest%' AND Id IN (SELECT cxsrec__Candidate__c FROM cxsrec__cxsHard_criterium__c) LIMIT 100]);
- msAnonymizer.AnonymizeCandidatesQueueable job = new msAnonymizer.AnonymizeCandidatesQueueable(candidateMap.keySet());
- if(!candidateMap.values().isEmpty()) {
- System.enqueueJob(job);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement