Fetch all CandidateSources

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
darkwing
User
Posts: 3
Joined: Tue Sep 11, 2018 7:31 am

Fetch all CandidateSources

Post by darkwing » Thu Nov 08, 2018 6:08 am

Hi, I would like to fetch all available CandidateSources, the meta of Candidate entity returns

Code: Select all

"optionsUrl":"https://rest91.bullhornstaffing.com/rest-services/account_id/options/CandidateSource"
But this error is returned at calling this url:

Code: Select all

{"errorMessage":"Unknown optionsType: 'CandidateSource'","errorCode":400}
I've also tried to call this entity by '/query' action by action like this:

Code: Select all

https://rest91.bullhornstaffing.com/rest-services/4tfxcg/query/CandidateSource?where=id>0
But nothing is returned. Is there any endpoint to fetch all CandidateSources?

pmularski
Bullhorn Support Staff
Posts: 925
Joined: Wed Dec 31, 1969 8:00 pm

Re: Fetch all CandidateSources

Post by pmularski » Tue Nov 13, 2018 11:19 am

Good Afternoon Darkwing,

Just to clarify, do you mean all entries in the Source field on the Candidate entity? I just want to make sure we are clear on what you are attempting to return.

-Pat
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131

darkwing
User
Posts: 3
Joined: Tue Sep 11, 2018 7:31 am

Re: Fetch all CandidateSources

Post by darkwing » Thu Nov 15, 2018 11:43 am

Yes, I would like to retrieve all entries of the Source field on the Candidate entity.

One more problem: setting desired categories, skills, specialties at contact in the UI doesn't seem to make any changes in API response, all these fields have null values in API response no matter what is set in UI. Is it a issue with yours API? Is there any way to retrieve values of these fields?

darkwing
User
Posts: 3
Joined: Tue Sep 11, 2018 7:31 am

Re: Fetch all CandidateSources

Post by darkwing » Thu Nov 15, 2018 11:56 am

And one more (hope it's last) thing, is there any option to assign country to address by CountryCode? Now it's required to pass countryID + Name or Code what is not really useful. We don't want to store all countryId's, countryCode's are much more useful and universal.

Thanks in advance,
Jan

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

Re: Fetch all CandidateSources

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

Hi Jan,

If you want to see what values are available for the source field you would want a meta call rather than an options call.

Code: Select all

GET /meta/Candidate?fields=source&BhRestToken={token}
It is not possible to set the address using a country code. You must use the country IDs.
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