Page 1 of 1

Setting a CorporateUser Additional Private Labels not working

Posted: Fri Aug 31, 2018 11:26 am
by andrewsavill
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

Re: Setting a CorporateUser Additional Private Labels not working

Posted: Wed Sep 05, 2018 9:10 am
by pmularski
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.