Import Candidates Configuration

All Textkernel External Search setup procedures are available here.

Go to the Textkernel Management tab > Manage Custom Settings and fill in the Import field with an endpoint URL for Textkernel Import APIClosed (provided by Textkernel).

Schedule the BHTK_CandidateImportBatch and BHTK_ImportRequestBatch Apex classes using the CandidateClosed Import Scheduling Script below. Execute the following script in Setup > Developer ConsoleDebug > Execute Anonymous Window:

Copy
Datetime currentTime = Datetime.now();
String minuteValue = String.valueOf(currentTime.minute());
if (minuteValue.length() == 2) {
    minuteValue = minuteValue.substring(1);
}
String secondValue = String.valueOf(currentTime.second());
for (Integer i = 0; i < 6; i++) {
    String jobName = 'BHTK_CandidateImportBatch: Job ' + String.valueOf(i + 1) + ' of 6';
    String cronExpression = secondValue + ' ' + String.valueOf(i) + minuteValue + ' * * * ? *';
    System.schedule(jobName, cronExpression, new TR1.BHTK_CandidateImportBatch());
}
System.schedule('BHTK_ImportRequestBatch', '0 0 0 * * ? *', new TR1.BHTK_ImportRequestBatch());

To check if the jobClosed is running, go to SetupScheduled JobsClosed.