Pull jobs as per category and date - 02255660

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
devcdg
User
Posts: 4
Joined: Tue Nov 24, 2015 5:34 am

Pull jobs as per category and date - 02255660

Post by devcdg » Tue May 24, 2016 12:30 pm

Hi,

I am using Bullhorn Rest API to pull jobs. I can pull the jobs but I want to pull jobs from the current date to few weeks back but I can either pass category or dateadded and not both

https://rest22.bullhornstaffing.com/res ... 94a5232be4


Please help

dratcliff
User
Posts: 4
Joined: Wed Jan 13, 2016 4:37 pm

Re: Pull jobs as per category and date - 02255660

Post by dratcliff » Fri Jun 03, 2016 6:09 pm

Hello devcdg,

When searching for a range the formatting REST uses is a [X TO Y] format, similar to Boolean logic.

Below is a slightly modified version of the REST URL you provided with the range used for the dateAdded field.

search/JobOrder?query=isDeleted:0 AND isOpen:(+true) AND dateAdded:[1459729540062 TO 1464105766737] AND NOT status:Archive AND categories.id = 1175075&fields=title,categories(id,name),id,address(city),salary,dateAdded&count=50&start=0&BhRestToken=XXXX

Thank you,
Doug

Post Reply