query vs. search - which entity types are supported?

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
bashen
User
Posts: 4
Joined: Wed Jul 11, 2018 5:09 pm

query vs. search - which entity types are supported?

Post by bashen » Wed Sep 19, 2018 4:41 pm

Hi all,

Is there any documentation on what entity types are supported for "query" and "search" APIs? I noticed you can't use "query" for Candidates and can't use "search" for PlacementCommission.

Thanks,
brian

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

Re: query vs. search - which entity types are supported?

Post by pmularski » Wed Sep 26, 2018 3:00 pm

Good Afternoon Brian,

You should be able to use both actions with all entity types, as long as they are available through your usertype. Candidate query specifically is available. The REST call below would query a database for all candidates of status = active.

https://rest2.bullhornstaffing.com/rest ... value_here
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

bashen
User
Posts: 4
Joined: Wed Jul 11, 2018 5:09 pm

Re: query vs. search - which entity types are supported?

Post by bashen » Wed Sep 26, 2018 4:57 pm

Thanks for the reply Patrick.

The example you provided for Candidate uses the "search" endpoint, not "query".

I have successfully used the "search" endpoint for Candidate but when I try to use the "query" endpoint I get an error.

e.g. query/Candidate?where="address.state = 'New York'"&fields=id
returns:

Code: Select all

{
    "errorMessage": "Query operation not supported for Candidate, please use /search call instead.",
    "errorMessageKey": "errors.queryIndexedEntity",
    "errorCode": 400
}
I can successfully use the "query" endpoint for other entity types like ClientCorporation, JobOrder.

I'm adding querying capabilities to my software and I wanted to use the same endpoint - "search" or "query" - for all entity types but it doesn't appear I can. Some entity types like Candidate doesn't support "query" and some entity types like PlacementCommission doesn't support "search".

brian

Post Reply