How to use additionalJobCriteria

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
CLUser
User
Posts: 1
Joined: Sun Sep 01, 2019 9:05 pm

How to use additionalJobCriteria

Post by CLUser » Mon Sep 02, 2019 2:06 am

Hi from Australia,

I am trying to request my jobs I have created by a category called department. I believe the app.json file has a "additionalJobCriteria" field which may be what I'm looking for. For example, the following code works to get jobs that are have an "employmentType" of "part-time". Great.

"additionalJobCriteria": {
"field": "employmentType",
"values": ["part-time"],
"sort": "-dateLastPublished"
}


What I really want however are my jobs that have a "publishedCategory" value that is an object with a certain "id" value inside of an object. For example, I want all "Internal" jobs which have a category id of 2000001. This code doesn't work.
"additionalJobCriteria": {
"field": "publishedCategory",
"values": [{ "id": "2000001", "name": "Internal" }],
"sort": "-dateLastPublished"
}

I believe the differences with the above examples is that "employmentType" only expects a string, whereas "publishedCategory" appears to need an object, and I may be passing in these parameters incorrectly. Can someone point me in the right direction?

mholmemi
User
Posts: 24
Joined: Fri Feb 15, 2019 10:31 am

Re: How to use additionalJobCriteria

Post by mholmemi » Wed Sep 11, 2019 11:30 am

Hi CLUser,

This is Mikaela from Bullhorn Support.

I would try "values": [{ "id": 2000001}]. Since it is an integer you don't need quotes and the id should suffice.

Let me know if that works!

Best,
Mikaela
Mikaela Holme-Miller | Tier II/Enterprise Support Analyst

Post Reply