Page 1 of 1

Retrieve list of CorporateUser and update its customText fields 02543148

Posted: Wed Jun 28, 2017 6:04 pm
by otesdev
I am trying to do this using the java SDK but could not find a way to do it. Are these even possible ?

Re: Retrieve list of CorporateUser and update its customText fields

Posted: Thu Jun 29, 2017 8:41 am
by otesdev
Thank you for the reply, but I don't think I understand your suggested solution. When I said Java SDK, I meant the Bullhorn-SDK-REST (https://github.com/bullhorn/sdk-rest). I don't have a db. I simply connected to their API through the Bullhorn-SDK-REST classes and make calls through its method (which is my question). So there is no Call button.... ?

Re: Retrieve list of CorporateUser and update its customText fields

Posted: Thu Jun 29, 2017 3:49 pm
by pmularski
Greetings Otesdev,

I apologize for that first response. That forum user was a spam account, which I have banned.

Re: Retrieve list of CorporateUser and update its customText fields

Posted: Wed Jul 05, 2017 12:26 pm
by otesdev
I am able to retrieve an individual CorporateUser using this line:

CorporateUser corporateUser = standardBullhornData.findEntity(CorporateUser.class, id);

but I need to retrieve the list of all CorporateUser

Also how to update a customText field of a CorporateUser ?

CorporateUser corporateUser = new CorporateUser(corporateUserId);
corporateUser.setCustomText1("Test");
standardBullhornData.updateEntity(corporateUser); // <== this is not allowed

Re: Retrieve list of CorporateUser and update its customText fields 02543148

Posted: Tue Aug 01, 2017 3:25 pm
by ajlevinson
The REST API states that CorporateUser is a read-only Entity, so updating isn't possible with the SDK or directly against the REST API.