Setting a CorporateUser Additional Private Labels not working

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
andrewsavill
User
Posts: 1
Joined: Fri Aug 31, 2018 11:04 am

Setting a CorporateUser Additional Private Labels not working

Post by andrewsavill » Fri Aug 31, 2018 11:26 am

I am trying to add additional private labels to a corporate using which the SOAP docs says is possible but I am unable to get it to work.

http://soapdoc.bullhorn.com/version_2-0 ... %7C_____19

The doc says "Read-Only (editable to users with Admin access to the API)". Other fields can be written but everything I try is not letting me complete this association.

I have tried use the below associate SOAP admin which worked for departments but not privateLabels.

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:apis="http://apiservice.bullhorn.com/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soapenv:Header/>
<soapenv:Body>
<apis:associate>
<session>X</session>
<entityName>CorporateUser</entityName>
<id xsi:type="xs:int">Y</id>
<associationName>privateLabels</associationName>
<associateId xsi:type="xs:int">Z</associateId>
</apis:associate>
</soapenv:Body>
</soapenv:Envelope>

This is the error I am getting.

"Error while commiting the transaction"
"could not delete collection: [com.bullhorn.entity.user.CorporateUser.privateLabels#XXXXX]
"View or function 'BH_UserPrivateLabel' is not updatable because the modification affects multiple base tables."

So my question is: Am I doing something wrong and if so can you help me or are the docs wrong and CorporateUsers Additional Private Labels cannot be associated via the API.

Many thanks,

Andrew

pmularski
Bullhorn Support Staff
Posts: 906
Joined: Wed Dec 31, 1969 8:00 pm

Re: Setting a CorporateUser Additional Private Labels not working

Post by pmularski » Wed Sep 05, 2018 9:10 am

Greetings Andrew,

The only aspect of a Private Label, which is accessible via the APIs is the general meta data. There is no association DTO, which limits the actions you can make on these database tables.
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131

Post Reply