Page 1 of 1

Getting ClientContacts from a CorporateUser

Posted: Fri Mar 26, 2021 9:59 am
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