Page 1 of 1

JobSubmissions - can't get results for jobOrder

Posted: Wed Feb 22, 2017 12:26 pm
by jimh88
I have job orders that can have more than 10 submissions, so I need to do a separate search to get the additional job submissions. However it's not getting any results back.

Code: Select all

https://rest.bullhornstaffing.com/rest-services/XXXX/search/JobSubmission?BhRestToken=XXXXX&query=jobOrder:71731&fields=*&count=50&start=0&useV2=true
That search return 0 results.

I've also tried using the GET 'query', but it returns an error "javax.persistence.PersistenceException: org.hibernate.HibernateException: instance not of expected entity type: java.math.BigDecimal is not a: com.bullhorn.entity.job.JobOrder"

Code: Select all

https://rest.bullhornstaffing.com/rest-services/XXXX/query/JobSubmission?BhRestToken=XXXXX&where=jobOrder=71731&fields=*&count=500&start=0&useV2=true

Re: JobSubmissions - can't get results for jobOrder

Posted: Wed Mar 01, 2017 10:15 am
by dfuller
Hi Jim,

I'm Dan with Bullhorn Support and I'll be assisting you on this issue.

The call you are looking for here is going to be:

Code: Select all

https://rest.bullhornstaffing.com/rest-services/XXXX/search/JobSubmission?BhRestToken=XXXXX&query=jobOrder.id:71731&fields=*&count=50&start=0&useV2=true

Whenever you are dealing with an associative field like that it will always be a .id on the end of the entity ID.

Warm regards,
Dan