JobSubmissions - can't get results for jobOrder

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
jimh88
User
Posts: 39
Joined: Mon Apr 11, 2016 12:34 pm

JobSubmissions - can't get results for jobOrder

Post by jimh88 » Wed Feb 22, 2017 12:26 pm

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

dfuller
User
Posts: 24
Joined: Tue May 03, 2016 1:47 pm

Re: JobSubmissions - can't get results for jobOrder

Post by dfuller » Wed Mar 01, 2017 10:15 am

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
Dan Fuller | Enterprise Support Analyst

Post Reply