Getting ClientContacts from a CorporateUser

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

Moderators: StaffingSupport, pmularski, BullhornSupport

Post Reply
kingsline
User
Posts: 2
Joined: Thu Mar 25, 2021 10:16 am

Getting ClientContacts from a CorporateUser

Post by kingsline »

Hello, all, brand new to BullHorn so trying to work out the relationships.
I want to run a query to pull out a corporateuser’s clientcontacts:

{oururl}/query/ClientContact?fields=firstName,lastName,id&where=owner='{username}'&count=3&BhRestToken={mytoken}

I’ve also substituted the username for the id e.g.:

{oururl}/query/ClientContact?fields=firstName,lastName,id&where=owner={id}&count=3&BhRestToken={mytoken}

In both cases I get the error:

"errorMessage":
"javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.bullhorn.entity.user.PersonData.userID",

"errorCode":
400


I have tried a simple search e.g. on the name of all contacts and this returns as expected so it isn’t a problem with the query.

Does this error mean that I am not allowed to search on the owner of a contact? If so can you suggest a way of getting the clientcontacts for a coporateuser ?

Thank you for your help
Emma
Post Reply