Page 1 of 1

Best way to get more than 10 candidate notes?

Posted: Thu May 25, 2017 10:53 am
by mfowler
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!

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

Posted: Thu May 25, 2017 5:35 pm
by srg.bdavis
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.

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

Posted: Fri May 26, 2017 9:44 am
by mfowler
This worked great!! Thank you so much!!!!!!!

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

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

Posted: Fri May 26, 2017 10:34 am
by mfowler
I added a related follow-up question here about how to get all candidates: http://supportforums.bullhorn.com/viewt ... 04&t=23777