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
Getting ClientContacts from a CorporateUser
Moderators: StaffingSupport, pmularski, BullhornSupport