Duplicate Candidates

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
marianbuga
User
Posts: 4
Joined: Thu Nov 23, 2017 11:27 am

Duplicate Candidates

Post by marianbuga » Thu Nov 23, 2017 11:35 am

Hi!
I'm trying to get Candidates and i get duplicated candidates.
In Bullhorn we have for example 61000 candidate.Trying to get them i will recieve 61000 but the result will contain 5000 of duplicates, if to try again to get Candidates it will return: 61000 but it will contain 4000 duplicates. The amount of duplicates is random. Also we are querying data by batches of 200, and inside of the batch there are no duplicates.

I'm using these query url: https://rest.bullhornstaffing.com/rest- ... 101T000000 TO 20180101T000000}&fields=secondaryOwners,owner,firstName,lastName,status,source,dateLastModified,dateAdded,type,isDeleted,id&count=200&start=0
How can I avoid duplicates?

Thank for help

DanJSupport
User
Posts: 22
Joined: Mon Aug 15, 2016 9:57 am

Re: Duplicate Candidates

Post by DanJSupport » Mon Dec 04, 2017 6:39 pm

Hi Marianbuga,

In order to avoid duplicates in successive calls like this you will want to add a sort parameter. You can adjust the end of your search call to be:

&sort=id&count=200&start=0
Dan Johnson
Tier 2 / Enterprise Support
Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131

marianbuga
User
Posts: 4
Joined: Thu Nov 23, 2017 11:27 am

Re: Duplicate Candidates

Post by marianbuga » Wed Dec 06, 2017 6:40 am

Thank you so much, it helped me out.

I added also this "sort" by id for Note entity and it returns me an error:
{
"errorMessage": "Bad sort: unknown field id.",
"errorCode": 400
}

I'm using this querry
https://rest.bullhornstaffing.com/rest- ... 010T000000 TO 20171101T000000}&fields=*&sort=id&count=200&start=0

I tried to use sorting by other field like "dateAdded" and it worked fine.

Is it a Bullhorn issues using sort by id on Note entity ? or my query is wrong?

rparnigoni
User
Posts: 1
Joined: Tue Dec 12, 2017 8:49 pm

Re: Duplicate Candidates

Post by rparnigoni » Tue Dec 12, 2017 9:59 pm

I don't know if you already found your answer but try sorting by noteID (...&sort=noteID....)

marianbuga
User
Posts: 4
Joined: Thu Nov 23, 2017 11:27 am

Re: Duplicate Candidates

Post by marianbuga » Fri Dec 15, 2017 9:16 am

Thank you, yes that was the right solution, i found it on other post from the forum

Post Reply