Candidate Fetch using specialties

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
khannnar
User
Posts: 1
Joined: Tue Sep 03, 2019 5:42 am

Candidate Fetch using specialties

Post by khannnar »

Hi Team,

I wanted to fetch candidate with matching specialties, since candidate is search entity it takes lucene form of query and specialties itself is OneToMany Object that contains list inside.
So, I wanted to know, how I can fetch candidate with matching specialty.?

Thanks.

khenle
User
Posts: 3
Joined: Wed Feb 26, 2020 12:31 pm

Re: Candidate Fetch using specialties

Post by khenle »

Hello khannnar,

This article is the Candidate entity documentation that goes over the possible Candidate fields: https://bullhorn.github.io/rest-api-doc ... #candidate

As specialties are a To-Many association, here is the article that goes over how to structure a GET request for To-Many Associations: http://bullhorn.github.io/rest-api-docs ... sociations

jkeenan
User
Posts: 1
Joined: Wed Dec 31, 1969 8:00 pm

Re: Candidate Fetch using specialties

Post by jkeenan »

Khannar

When using search on the to-many fields you would use something like this:

search/[ENTITY]?fields=[LIST OF FIELDS like id, SUBENTITU(id, name, etc)
&query=isDeleted:false AND SUBENTITY.id:XXXXX

so search/Candidate?fields=id,name,specialties(id,name)&query=specialties.id:11111

One thing to note - depending on how you set up your instance of Bullhorn, you might need to search for Categories instead of Specialties.

Post Reply