Query/NoteEntity doesn't work when one to many relation entity specified

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

Moderators: StaffingSupport, pmularski, BullhornSupport

Post Reply
andrewmoore
User
Posts: 1
Joined: Tue Dec 03, 2024 11:28 pm

Query/NoteEntity doesn't work when one to many relation entity specified

Post by andrewmoore »

NOTE to Admins: I have asked this question on Bullhorn forum but no answer that is why asking here.

Code: Select all

query/NoteEntity?BhRestToken={{BhRestToken}}&fields=note(id,action)&count=50&start=0&where=note.dateLastModified>1720950000000
Above call works fine but following doesn't, difference is that I have specified one to many relation entity candidates in following

Code: Select all

query/NoteEntity?BhRestToken={{BhRestToken}}&fields=note(id,action,candidates)&count=50&start=0&where=note.dateLastModified>1720950000000
I get "An internal error has occurred" in above call.

What is the reason and how this can be corrected?
pmularski
Bullhorn Support Staff
Posts: 1031
Joined: Wed Dec 31, 1969 8:00 pm

Re: Query/NoteEntity doesn't work when one to many relation entity specified

Post by pmularski »

Greetings andrewmoore,

You need to run this as a Search, with a sub-query. So if you use the following, it should function properly on your end. When I ran this in my test environment, it properly returned data.

search/Note?BhRestToken=((Rest Token))&fields=id,action,candidates&count=50&query=note.dateLastModified>1720950000000
Pat Mularski
Support Forum Admin
Technical Support Engineer 1
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Contact Numbers
https://help.bullhorn.com/s/support-numbers
https://help.bullhorn.com/s/contactsupport
Post Reply