Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement