a guest Apr 25th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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]);
  2. msAnonymizer.AnonymizeCandidatesQueueable job = new msAnonymizer.AnonymizeCandidatesQueueable(candidateMap.keySet());
  3. if(!candidateMap.values().isEmpty()) {
  4.     System.enqueueJob(job);  
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand