Best way to get more than 10 candidate notes?

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

mfowler
User
Posts: 8
Joined: Thu May 25, 2017 8:30 am

Best way to get more than 10 candidate notes?

Postby mfowler » Thu May 25, 2017 10:53 am

In the bullhorn documentation I see that you can use square brackets to indicate how many of a 1-many field you want.
"
Use the following syntax to filter the to - many entities that are returned in a response.
All three parts of the syntax are optional.The where - filter is delimited by curly braces.
fields = fieldName[count](sub - fields) {where - filter}
"

But it seems the upper limit is 10.

I would like to return all of the Notes for a given candidate. What is the best way to do this with Bullhorn's API? Is there a way to get all of them at once? Or perhaps some way to iterate?? But I'm not sure what order the notes I do get are returned in... or if this will be efficient

Thanks for any help!

srg.bdavis
User
Posts: 58
Joined: Thu Feb 20, 2014 4:52 pm

Re: Best way to get more than 10 candidate notes?

Postby srg.bdavis » Thu May 25, 2017 5:35 pm

I'm not aware of a way to get all of them in one call (e.g. get the candidate and all the notes at the same time), but you could make a call to get the candidate info, then a second call using /query/NoteEntity?fields=note(sub fields)&where=targetEntityID={candidate id} that would return up to 500 notes. If you had candidates with more than 500, you would need to use the "start" parameter until all notes were retrieved.

mfowler
User
Posts: 8
Joined: Thu May 25, 2017 8:30 am

Re: Best way to get more than 10 candidate notes?

Postby mfowler » Fri May 26, 2017 9:44 am

This worked great!! Thank you so much!!!!!!!

up to 500 should be fine for my use case, thanks for quick response!

mfowler
User
Posts: 8
Joined: Thu May 25, 2017 8:30 am

Re: Best way to get more than 10 candidate notes?

Postby mfowler » Fri May 26, 2017 10:34 am

I added a related follow-up question here about how to get all candidates: viewtopic.php?f=104&t=23777


Return to “REST API”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron