After updating status of a candidate, the new status is shown only on the candidate's page, but not on the job's page

Forum for users and developers of Bullhorn's new REST API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
valentinalinguedo
User
Posts: 1
Joined: Wed Nov 07, 2018 2:34 pm

After updating status of a candidate, the new status is shown only on the candidate's page, but not on the job's page

Post by valentinalinguedo » Thu Nov 08, 2018 3:59 pm

Hello!

We use Bullhorn REST API to manage applicants in our Bullhorn database. We would like to perform changing status of our candidates automatically. To do that we use the next code.

Code: Select all

$raw_data = Array (
	"id" => $candidate["bullhorn_id"],
	"status"          => "NEG - NO CV"
);

$result = updateCandidate($raw_data, $BhRestToken, $rest_url);
                    
function updateCandidate($fields, $BhRestToken, $restUrl) {
    $url = $restUrl . 'entity/Candidate/' . $fields["id"] . '?BhRestToken=' . $BhRestToken;

    echo $url;

    $fields_string = json_encode($fields);

    $curl = curl_init($url);
    
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($curl, CURLOPT_POSTFIELDS, $fields_string);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HTTPHEADER, Array (
        'Content-Type: application/json'
    ));

    $candidate = curl_exec($curl);
    curl_close($curl);

    return $candidate;
}
The code works, but the new status in shown only on candidate's page (screenshot1),

Image

but not on the page of the campaign to which the candidate applied the old status is shown

Image

Do we use a wrong endpoint? Or do we need to pass some additional parameters?

We would like to solve the inconvinience as soon as possible, so a quick answer is appreciated.

Thanks!

DanJSupport
User
Posts: 46
Joined: Mon Aug 15, 2016 9:57 am

Re: After updating status of a candidate, the new status is shown only on the candidate's page, but not on the job's pag

Post by DanJSupport » Wed Nov 28, 2018 11:27 am

Hi valentinalinguedo,

It is difficult to tell from just the screenshots, but I believe you are looking at two different statuses. There is the candidate status and then there is the status of the JobSubmission. You would need to make a second call to update that value.
Dan Johnson
Tier 2 / Enterprise Support
Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131

Post Reply