02670290: No owner in ClientCorporation

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Dezachu
User
Posts: 1
Joined: Wed Jan 31, 2018 1:01 pm

02670290: No owner in ClientCorporation

Postby Dezachu » Wed Jan 31, 2018 1:04 pm

We're trying to attribute the creation of a Company (ClientCorporation entity) to a user, but the data returned does not contain any ownership details despite Bullhorn itself showing the owner.

The data we receive looks like this:

Code: Select all

"owners":{"total":1,"data":[]},"ownership":"


Any idea how we can get the owning user? ClientContacts correctly give us the owner's ID, first name and surname, but ClientCorporation does not.

Thanks!

DanJSupport
User
Posts: 8
Joined: Mon Aug 15, 2016 9:57 am

Re: 02670290: No owner in ClientCorporation

Postby DanJSupport » Fri Feb 02, 2018 10:57 am

Hi Dezachu,

To-many association fields will display like this when you specify all fields on a GET /entity call. If you want to see the values in that field, you need to specify the field like this:

Code: Select all

GET /entity/ClientCorporation/{id}/owners?fields=*&BhRestToken={token}

or

Code: Select all

GET /entity/ClientCorporation/{id}?fields=owners&BhRestToken={token}


The reason you don't see this on other entities like ClientContact is that the owner field is a to-one association so the value will return even when specifying fields=*.

One other thing to note on ClientCorporation is that the owners association comes from the owners of the ClientContacts that are associated with it. There is not a direct association between CorporateUser and ClientCorporation.

Let me know if you have any other questions around this topic.
Dan Johnson
Tier 2 / Enterprise Support
Bullhorn Support US: 617-478-9126
Bullhorn Support UK: 44 800 032 2848
Bullhorn Support Australia: 61 28 073 5089
Bullhorn Support International: 617-478-9131


Return to “REST API”

Who is online

Users browsing this forum: Google [Bot] and 2 guests