Get BusinessSectors for Candidates

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

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

Get BusinessSectors for Candidates

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

Hi,

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','http://www.w3.org/2001/XMLSchema'),
);

try{
$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 b.id FROM com.bullhorn.entity.candidate.Candidate a JOIN a.BusinessSector b WHERE a.id = :id]
[string:Exception:private] =>
[code:protected] => 0

Post Reply