Using the “ Export applicants” feature, an admin can export the applicant’s data as a CSV File.
You can easily filter the data and retrieve the correct resumes required by the admin, then later export these bulk data into one single CSV file.
How to Apply this Feature
Initially, Navigate to Job Listing > All Applicants.
- Here you can use various filtering options given in the dashboard to find accurate data.
- Bulk-select or select the specific candidate data according to the requirement.
- Lastly, you can find the “Export applicants” feature in the dropdown menu with the label – Bulk Actions
- Select the Export applicants and click on Apply to convert the data into a CSV file.
Custom Fields in CSV file.
To include custom fields other than the default fields in the CSV file, please use the following filters
thjm_modify_csv_header_row, thjm_add_custom_data_to_csv
One for adding header row(label) and other one is to add its data respectively.
- Header Row
$header = apply_filters('thjm_modify_csv_header_row',[ 'Applicant-id', 'Applicant Name', 'Applied Position', 'Contact Number', 'Applicant Email', 'Applicant Resume', 'Cover Letter','Applicant Status','Applied Date' ]);
EG:
add_filter('thjm_modify_csv_header_row', 'thjm_modify_csv_header_row_function',10); function thjm_modify_csv_header_row_function($header){ $header[] = 'Custom Field1'; $header[] = 'Custom Field2'; #or array_push($header, 'Custom Field 1', 'Custom Field 2'); return $header; }
- Data Row
$data[] = apply_filters('thjm_add_custom_data_to_csv',array( 'id' => $post_id, 'title' => get_the_title($post_id), 'job_title' => $job_title, 'phone' => $phone, 'email' => $email, 'resume' => $url, 'cover_letter' => $cover_letter, 'application_status' => $application_status, 'published_date' => get_the_date('dS M Y', $post_id) ),$post_id);
EG:
add_filter('thjm_add_custom_data_to_csv', 'thjm_add_custom_data_to_csv_function', 10, 2); function thjm_add_custom_data_to_csv_function($data, $post_id){ $meta_data = get_post_meta($post_id); $custom_field_value1 = isset($meta_data['custom_field1']) ? reset($meta_data['custom_field1']) : ''; $custom_field_value2 = isset($meta_data['custom_field2']) ? reset($meta_data['custom_field2']) : ''; $data['custom_field_value1'] = $custom_field_value1; $data['custom_field_value2'] = $custom_field_value2; return $data; }
Please be advised that the name of a custom field will be in lowercase and include underscores (_) in place of spaces, matching the label of the field.Once a custom field is created, the name cannot be modified, even if the label is changed later on. If you need to change the name, you will have to create a new field with the desired name and delete the old one.(Eg : Label = Custom Field then Name = custom_field)
To Export Data as Rest API
Job Manager can be easily integrated with other applications/interfaces through Rest API. The Job Manager Rest API supports JSONP, following are the Rest API endpoints for applicants and jobs data.
- In order to retrieve all jobs
GET baseurl/thjm/v1/jobs
- In order to retrieve all applicants
GET baseurl/thjm/v1/applicants
- In order to retrieve for a specific job applicants
GET baseurl/thjm/v1/job-title
The authorization used is {Basic Auth} – application password and username of the site.