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.
Candidate Fetch using specialties
Moderators: StaffingSupport, s.emmons, BullhornSupport
Re: Candidate Fetch using specialties
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
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
Re: Candidate Fetch using specialties
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.
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.