Get BusinessSectors for Candidates

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
Posts: 1
Joined: Fri Nov 17, 2017 10:10 pm

Get BusinessSectors for Candidates

Post by adam3145 » Fri Nov 17, 2017 10:16 pm


How do I get business sectors for Candidates? I would like to query for a specific candidate and get there business sectors.

I am running this:

$find_request = array (
'session' => $API_currentSession,
'entityName' => 'Candidate',
'associationName' => 'BusinessSector',
'id' => new SoapVar(126778, XSD_INTEGER,'int',''),

$findResult = $BHclient->getAssociationIDs($find_request);

I get the following response

SoapFault Object
[message:protected] => org.hibernate.QueryException: could not resolve property: BusinessSector of: com.bullhorn.entity.candidate.Candidate [SELECT FROM com.bullhorn.entity.candidate.Candidate a JOIN a.BusinessSector b WHERE = :id]
[string:Exception:private] =>
[code:protected] => 0

Post Reply